OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 import 'utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration( |
| 8 "gets first if a path dependency's path doesn't match the one in " |
| 9 "the lock file", |
| 10 () { |
| 11 d.dir( |
| 12 "foo-before", |
| 13 [d.libPubspec("foo", "0.0.1"), d.libDir("foo", "before")]).create(); |
| 14 d.dir( |
| 15 "foo-after", |
| 16 [d.libPubspec("foo", "0.0.1"), d.libDir("foo", "after")]).create(); |
| 17 d.appDir({ |
| 18 "foo": { |
| 19 "path": "../foo-before" |
| 20 } |
| 21 }).create(); |
| 22 pubGet(); |
| 23 d.appDir({ |
| 24 "foo": { |
| 25 "path": "../foo-after" |
| 26 } |
| 27 }).create(); |
| 28 pubServe(shouldGetFirst: true); |
| 29 requestShouldSucceed("packages/foo/foo.dart", 'main() => "after";'); |
| 30 endPubServe(); |
| 31 }); |
| 32 } |
OLD | NEW |