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("doesn't serve .gitignored assets in a path dependency", () { |
| 8 ensureGit(); |
| 9 d.dir(appPath, [d.appPubspec({ |
| 10 "foo": { |
| 11 "path": "../foo" |
| 12 } |
| 13 })]).create(); |
| 14 d.git( |
| 15 "foo", |
| 16 [ |
| 17 d.libPubspec("foo", "1.0.0"), |
| 18 d.dir( |
| 19 "lib", |
| 20 [ |
| 21 d.file("outer.txt", "outer contents"), |
| 22 d.file("visible.txt", "visible"), |
| 23 d.dir("dir", [d.file("inner.txt", "inner contents")])]), |
| 24 d.file(".gitignore", "/lib/outer.txt\n/lib/dir")]).create(); |
| 25 pubServe(shouldGetFirst: true); |
| 26 requestShould404("packages/foo/outer.txt"); |
| 27 requestShould404("packages/foo/dir/inner.txt"); |
| 28 requestShouldSucceed("packages/foo/visible.txt", "visible"); |
| 29 endPubServe(); |
| 30 }); |
| 31 } |
OLD | NEW |