Project

General

Profile

Download (668 Bytes) Statistics
| Branch: | Tag: | Revision:

hammer-cli-csv / test / export_test.rb @ d9498f54

1
require File.join(File.dirname(__FILE__), 'csv_test_helper')
2

    
3
describe 'export' do
4
  extend CommandTestHelper
5

    
6
  context "help" do
7
    it "displays supported options" do
8
      set_user 'admin'
9

    
10
      stdout,stderr = capture {
11
        hammer.run(%W{csv export --help})
12
      }
13
      stderr.must_equal ''
14
      stdout.must_equal <<-HELP
15
Usage:
16
     csv export [OPTIONS]
17

18
Options:
19
 --dir DIRECTORY               directory to export to
20
 --organization ORGANIZATION   Only process organization matching this name
21
 --settings FILE               csv file for settings
22
 -h, --help                    print help
23
 -v, --verbose                 be verbose
24
HELP
25
    end
26
  end
27
end