| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library pub_tests; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:scheduled_test/scheduled_test.dart'; | 9 import 'package:scheduled_test/scheduled_test.dart'; |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 exitCode: 64); | 93 exitCode: 64); |
| 94 }); | 94 }); |
| 95 | 95 |
| 96 group('help', () { | 96 group('help', () { |
| 97 integration('shows help for a command', () { | 97 integration('shows help for a command', () { |
| 98 schedulePub(args: ['help', 'install'], | 98 schedulePub(args: ['help', 'install'], |
| 99 output: ''' | 99 output: ''' |
| 100 Install the current package's dependencies. | 100 Install the current package's dependencies. |
| 101 | 101 |
| 102 Usage: pub install | 102 Usage: pub install |
| 103 --[no-]offline Use cached packages instead of accessing the netwo
rk |
| 103 '''); | 104 '''); |
| 104 }); | 105 }); |
| 105 | 106 |
| 106 integration('shows help for a command', () { | 107 integration('shows help for a command', () { |
| 107 schedulePub(args: ['help', 'publish'], | 108 schedulePub(args: ['help', 'publish'], |
| 108 output: ''' | 109 output: ''' |
| 109 Publish the current package to pub.dartlang.org. | 110 Publish the current package to pub.dartlang.org. |
| 110 | 111 |
| 111 Usage: pub publish [options] | 112 Usage: pub publish [options] |
| 112 -n, --dry-run Validate but do not publish the package
| 113 -n, --dry-run Validate but do not publish the package
|
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // The "version" file generated on developer builds is a little funky and | 145 // The "version" file generated on developer builds is a little funky and |
| 145 // we need to make sure we don't choke on it. | 146 // we need to make sure we don't choke on it. |
| 146 d.dir(sdkPath, [ | 147 d.dir(sdkPath, [ |
| 147 d.file('version', '0.1.2.0_r16279_bobross'), | 148 d.file('version', '0.1.2.0_r16279_bobross'), |
| 148 ]).create(); | 149 ]).create(); |
| 149 | 150 |
| 150 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); | 151 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); |
| 151 }); | 152 }); |
| 152 }); | 153 }); |
| 153 } | 154 } |
| OLD | NEW |