OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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:path/path.dart' as p; | 5 import 'package:path/path.dart' as p; |
6 import 'package:pub/src/exit_codes.dart' as exit_codes; | 6 import 'package:pub/src/exit_codes.dart' as exit_codes; |
7 | 7 |
8 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
9 | 9 |
10 main() { | 10 main() { |
11 integration('errors if the script does not exist.', () { | 11 integration('errors if the script does not exist.', () { |
12 servePackages((builder) => builder.serve("foo", "1.0.0")); | 12 servePackages((builder) => builder.serve("foo", "1.0.0", pubspec: { |
| 13 // Make sure barback doesn't try to look at *all* dependencies when |
| 14 // determining which transformers to load. |
| 15 "dev_dependencies": {"bar": "1.0.0"} |
| 16 })); |
13 | 17 |
14 schedulePub(args: ["global", "activate", "foo"]); | 18 schedulePub(args: ["global", "activate", "foo"]); |
15 | 19 |
16 var pub = pubRun(global: true, args: ["foo:script"]); | 20 var pub = pubRun(global: true, args: ["foo:script"]); |
17 pub.stderr.expect("Could not find ${p.join("bin", "script.dart")}."); | 21 pub.stderr.expect( |
| 22 "Could not find ${p.join("bin", "script.dart")} in package foo."); |
18 pub.shouldExit(exit_codes.NO_INPUT); | 23 pub.shouldExit(exit_codes.NO_INPUT); |
19 }); | 24 }); |
20 } | 25 } |
OLD | NEW |