OLD | NEW |
(Empty) | |
| 1 import '../descriptor.dart' as d; |
| 2 import '../test_pub.dart'; |
| 3 main() { |
| 4 initConfig(); |
| 5 integration("doesn't change git dependencies", () { |
| 6 ensureGit(); |
| 7 d.git('foo.git', [d.libDir('foo'), d.libPubspec('foo', '1.0.0')]).create(); |
| 8 d.appDir({ |
| 9 "foo": { |
| 10 "git": "../foo.git" |
| 11 } |
| 12 }).create(); |
| 13 pubGet(); |
| 14 d.dir( |
| 15 packagesPath, |
| 16 [d.dir('foo', [d.file('foo.dart', 'main() => "foo";')])]).validate(); |
| 17 d.git( |
| 18 'foo.git', |
| 19 [d.libDir('foo', 'foo 2'), d.libPubspec('foo', '1.0.0')]).commit(); |
| 20 pubDowngrade(); |
| 21 d.dir( |
| 22 packagesPath, |
| 23 [d.dir('foo', [d.file('foo.dart', 'main() => "foo";')])]).validate(); |
| 24 }); |
| 25 } |
OLD | NEW |