| 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 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
| 8 | 8 |
| 9 import 'descriptor.dart' as d; | 9 import 'descriptor.dart' as d; |
| 10 import 'test_pub.dart'; | 10 import 'test_pub.dart'; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 integration('an unexpected argument displays an error message', () { | 117 integration('an unexpected argument displays an error message', () { |
| 118 schedulePub(args: ['version', 'unexpected'], | 118 schedulePub(args: ['version', 'unexpected'], |
| 119 output: ''' | 119 output: ''' |
| 120 Print pub version. | 120 Print pub version. |
| 121 | 121 |
| 122 Usage: pub version | 122 Usage: pub version |
| 123 -h, --help Print usage information for this command. | 123 -h, --help Print usage information for this command. |
| 124 ''', | 124 ''', |
| 125 error: ''' | 125 error: ''' |
| 126 Command does not take any arguments. | 126 Command "version" does not take any arguments. |
| 127 ''', | 127 ''', |
| 128 exitCode: 64); | 128 exitCode: 64); |
| 129 }); | 129 }); |
| 130 | 130 |
| 131 group('help', () { | 131 group('help', () { |
| 132 integration('shows help for a command', () { | 132 integration('shows help for a command', () { |
| 133 schedulePub(args: ['help', 'get'], | 133 schedulePub(args: ['help', 'get'], |
| 134 output: ''' | 134 output: ''' |
| 135 Get the current package's dependencies. | 135 Get the current package's dependencies. |
| 136 | 136 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // The "version" file generated on developer builds is a little funky and | 182 // The "version" file generated on developer builds is a little funky and |
| 183 // we need to make sure we don't choke on it. | 183 // we need to make sure we don't choke on it. |
| 184 d.dir(sdkPath, [ | 184 d.dir(sdkPath, [ |
| 185 d.file('version', '0.1.2.0_r16279_bobross'), | 185 d.file('version', '0.1.2.0_r16279_bobross'), |
| 186 ]).create(); | 186 ]).create(); |
| 187 | 187 |
| 188 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); | 188 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); |
| 189 }); | 189 }); |
| 190 }); | 190 }); |
| 191 } | 191 } |
| OLD | NEW |