Index: test/validator/executable_test.dart |
diff --git a/test/validator/executable_test.dart b/test/validator/executable_test.dart |
index 12610855e98c26a549c3ccbc44248712d22b9968..fbd6c1ec4aeedf8d1ea2f26bc0d3939208cc094b 100644 |
--- a/test/validator/executable_test.dart |
+++ b/test/validator/executable_test.dart |
@@ -51,5 +51,24 @@ main() { |
]).create(); |
expectValidationWarning(executable); |
}); |
+ |
+ integration('has .gitignored one or more listed executables', () { |
+ d.git(appPath, [ |
+ d.pubspec({ |
+ "name": "test_pkg", |
+ "version": "1.0.0", |
+ "executables": { |
+ "one": "one_script", |
+ "two": null |
+ } |
+ }), |
+ d.dir("bin", [ |
+ d.file("one_script.dart", "main() => print('ok');"), |
+ d.file("two.dart", "main() => print('ok');") |
+ ]), |
+ d.file(".gitignore", "bin") |
+ ]).create(); |
+ expectValidationWarning(executable); |
+ }); |
}); |
} |