| 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; | |
| 6 | |
| 7 import 'test_pub.dart'; | 5 import 'test_pub.dart'; |
| 8 | 6 |
| 9 main() { | 7 main() { |
| 10 integration('running pub with no command displays usage', () { | 8 integration('running pub with no command displays usage', () { |
| 11 schedulePub(args: [], output: """ | 9 schedulePub(args: [], output: """ |
| 12 Pub is a package manager for Dart. | 10 Pub is a package manager for Dart. |
| 13 | 11 |
| 14 Usage: pub <command> [arguments] | 12 Usage: pub <command> [arguments] |
| 15 | 13 |
| 16 Global options: | 14 Global options: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 45 | 43 |
| 46 Run "pub help <command>" for more information about a command. | 44 Run "pub help <command>" for more information about a command. |
| 47 See http://dartlang.org/tools/pub for detailed documentation. | 45 See http://dartlang.org/tools/pub for detailed documentation. |
| 48 """); | 46 """); |
| 49 }); | 47 }); |
| 50 | 48 |
| 51 integration('running pub with just --version displays version', () { | 49 integration('running pub with just --version displays version', () { |
| 52 schedulePub(args: ['--version'], output: 'Pub 0.1.2+3'); | 50 schedulePub(args: ['--version'], output: 'Pub 0.1.2+3'); |
| 53 }); | 51 }); |
| 54 } | 52 } |
| OLD | NEW |