| 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:scheduled_test/scheduled_test.dart'; |
| 6 |
| 5 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
| 6 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
| 7 | 9 |
| 8 main() { | 10 main() { |
| 9 initConfig(); | 11 initConfig(); |
| 10 integration('activates a package from a Git repo', () { | 12 integration('activates a package from a Git repo', () { |
| 11 ensureGit(); | 13 ensureGit(); |
| 12 | 14 |
| 13 d.git('foo.git', [ | 15 d.git('foo.git', [ |
| 14 d.libPubspec("foo", "1.0.0"), | 16 d.libPubspec("foo", "1.0.0"), |
| 15 d.dir("bin", [ | 17 d.dir("bin", [ |
| 16 d.file("foo.dart", "main() => print('ok');") | 18 d.file("foo.dart", "main() => print('ok');") |
| 17 ]) | 19 ]) |
| 18 ]).create(); | 20 ]).create(); |
| 19 | 21 |
| 20 schedulePub(args: ["global", "activate", "-sgit", "../foo.git"], | 22 schedulePub(args: ["global", "activate", "-sgit", "../foo.git"], |
| 21 output: ''' | 23 output: allOf( |
| 22 Resolving dependencies... | 24 startsWith( |
| 23 + foo 1.0.0 from git ../foo.git | 25 'Resolving dependencies...\n' |
| 24 Precompiling executables... | 26 '+ foo 1.0.0 from git ../foo.git at '), |
| 25 Loading source assets... | 27 // Specific revision number goes here. |
| 26 Precompiled foo:foo. | 28 endsWith( |
| 27 Activated foo 1.0.0 from Git repository "../foo.git".'''); | 29 'Precompiling executables...\n' |
| 30 'Loading source assets...\n' |
| 31 'Precompiled foo:foo.\n' |
| 32 'Activated foo 1.0.0 from Git repository "../foo.git".'))); |
| 28 }); | 33 }); |
| 29 } | 34 } |
| OLD | NEW |