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('test_pub.dart'); | 9 #import('test_pub.dart'); |
10 #import('../../../lib/unittest/unittest_vm.dart'); | 10 #import('../../../lib/unittest/unittest.dart'); |
11 | 11 |
12 main() { | 12 main() { |
13 group('running pub with no command', () { | 13 group('running pub with no command', () { |
14 testOutput('displays usage', | 14 testOutput('displays usage', |
15 [], | 15 [], |
16 ''' | 16 ''' |
17 Pub is a package manager for Dart. | 17 Pub is a package manager for Dart. |
18 | 18 |
19 Usage: | 19 Usage: |
20 | 20 |
(...skipping 13 matching lines...) Expand all Loading... |
34 | 34 |
35 group('an unknown command', () { | 35 group('an unknown command', () { |
36 testOutput('displays an error message', | 36 testOutput('displays an error message', |
37 ['quylthulg'], | 37 ['quylthulg'], |
38 ''' | 38 ''' |
39 Unknown command "quylthulg". | 39 Unknown command "quylthulg". |
40 Run "pub help" to see available commands.''', | 40 Run "pub help" to see available commands.''', |
41 exitCode: 64); | 41 exitCode: 64); |
42 }); | 42 }); |
43 } | 43 } |
OLD | NEW |