| 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 '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
| 6 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 integration('runs a named Dart application in a dependency', () { | 9 integration('runs a named Dart application in a dependency', () { |
| 10 d.dir("foo", [ | 10 d.dir("foo", [ |
| 11 d.libPubspec("foo", "1.0.0"), | 11 d.libPubspec("foo", "1.0.0"), |
| 12 d.dir("bin", [ | 12 d.dir("bin", [ |
| 13 d.file("bar.dart", "main() => print('foobar');") | 13 d.file("bar.dart", "main() => print('foobar');") |
| 14 ]) | 14 ]) |
| 15 ]).create(); | 15 ]).create(); |
| 16 | 16 |
| 17 d.dir(appPath, [ | 17 d.dir(appPath, [ |
| 18 d.appPubspec({ | 18 d.appPubspec({ |
| 19 "foo": {"path": "../foo"} | 19 "foo": {"path": "../foo"} |
| 20 }) | 20 }) |
| 21 ]).create(); | 21 ]).create(); |
| 22 | 22 |
| 23 var pub = pubRun(args: ["foo:bar"], shouldGetFirst: true); | 23 pubGet(); |
| 24 var pub = pubRun(args: ["foo:bar"]); |
| 24 pub.stdout.expect("foobar"); | 25 pub.stdout.expect("foobar"); |
| 25 pub.shouldExit(); | 26 pub.shouldExit(); |
| 26 }); | 27 }); |
| 27 } | 28 } |
| OLD | NEW |