OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:pub/src/entrypoint.dart'; | 5 import 'package:pub/src/entrypoint.dart'; |
6 import 'package:pub/src/validator.dart'; | 6 import 'package:pub/src/validator.dart'; |
7 import 'package:pub/src/validator/executable.dart'; | 7 import 'package:pub/src/validator/executable.dart'; |
8 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
9 | 9 |
10 import '../descriptor.dart' as d; | 10 import '../descriptor.dart' as d; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 "name": "test_pkg", | 44 "name": "test_pkg", |
45 "version": "1.0.0", | 45 "version": "1.0.0", |
46 "executables": { | 46 "executables": { |
47 "nope": "not_there", | 47 "nope": "not_there", |
48 "nada": null | 48 "nada": null |
49 } | 49 } |
50 }) | 50 }) |
51 ]).create(); | 51 ]).create(); |
52 expectValidationWarning(executable); | 52 expectValidationWarning(executable); |
53 }); | 53 }); |
| 54 |
| 55 integration('has .gitignored one or more listed executables', () { |
| 56 d.git(appPath, [ |
| 57 d.pubspec({ |
| 58 "name": "test_pkg", |
| 59 "version": "1.0.0", |
| 60 "executables": { |
| 61 "one": "one_script", |
| 62 "two": null |
| 63 } |
| 64 }), |
| 65 d.dir("bin", [ |
| 66 d.file("one_script.dart", "main() => print('ok');"), |
| 67 d.file("two.dart", "main() => print('ok');") |
| 68 ]), |
| 69 d.file(".gitignore", "bin") |
| 70 ]).create(); |
| 71 expectValidationWarning(executable); |
| 72 }); |
54 }); | 73 }); |
55 } | 74 } |
OLD | NEW |