OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import 'package:scheduled_test/scheduled_test.dart'; |
| 3 import '../../descriptor.dart' as d; |
| 4 import '../../test_pub.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 group("(regression)", () { |
| 8 integration('checks out a package from Git with a trailing slash', () { |
| 9 ensureGit(); |
| 10 d.git( |
| 11 'foo.git', |
| 12 [d.libDir('foo'), d.libPubspec('foo', '1.0.0')]).create(); |
| 13 d.appDir({ |
| 14 "foo": { |
| 15 "git": "../foo.git/" |
| 16 } |
| 17 }).create(); |
| 18 pubGet(); |
| 19 d.dir( |
| 20 cachePath, |
| 21 [ |
| 22 d.dir( |
| 23 'git', |
| 24 [ |
| 25 d.dir('cache', [d.gitPackageRepoCacheDir('foo')]), |
| 26 d.gitPackageRevisionCacheDir('foo')])]).validate(); |
| 27 d.dir( |
| 28 packagesPath, |
| 29 [d.dir('foo', [d.file('foo.dart', 'main() => "foo";')])]).validate(); |
| 30 }); |
| 31 }); |
| 32 } |
OLD | NEW |