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", () { |
| 8 ensureGit(); |
| 9 d.git( |
| 10 appPath, |
| 11 [ |
| 12 d.appPubspec(), |
| 13 d.dir( |
| 14 "web", |
| 15 [ |
| 16 d.file("outer.txt", "outer contents"), |
| 17 d.dir("dir", [d.file("inner.txt", "inner contents")])]), |
| 18 d.file(".gitignore", "/web/outer.txt\n/web/dir")]).create(); |
| 19 pubServe(); |
| 20 requestShould404("outer.txt"); |
| 21 requestShould404("dir/inner.txt"); |
| 22 endPubServe(); |
| 23 }); |
| 24 } |
OLD | NEW |