redstone-dart / redstone

A metadata driven microframework for Dart.
http://redstone-dart.github.io/redstone
MIT License
342 stars 42 forks source link

Weird: MockRequest is not UnparsedRequest. #85

Closed cgarciae closed 9 years ago

cgarciae commented 9 years ago

Believe it or not, I am not able to run unittest since the last upgrade because of this

MockRequest req = new MockRequest (...);
print (req is app.UnparsedRequest) //false;

now dispatch wont work. I checked the type and MockRequest does implement the UnparsedRequest interface. But somehow it not working!

cgarciae commented 9 years ago

Forget about this. I was importing like this

import 'packages/redstone/server.dart';
import 'packages/redstone/mocks.dart';

because I was trying to put the tests inside a subfolder of /bin on windows. Gave up on that, so they are now on bin and I can use package: as always.