Project

General

Profile

« Previous | Next » 

Revision b2e88b7c

Added by Thomas McKay about 8 years ago

fixes #14162 - hide unsupported sub-commands and options

+ updated for ruby 2.0.0
+ updated README
+ fixed rubocop
+ updated tests
+ based on feedback switched to default being unsupported for new commands

View differences:

test/settings_test.rb
require File.join(File.dirname(__FILE__), 'csv_test_helper')
describe 'job-templates' do
describe 'settings' do
extend CommandTestHelper
context "help" do
it "displays supported options" do
set_user 'admin'
stdout,stderr = capture {
hammer.run(%W{csv settings --help})
}
stderr.must_equal ''
stdout.must_equal <<-HELP
Usage:
csv settings [OPTIONS]
Options:
--export Export current data instead of importing
--file FILE_NAME CSV file (default to /dev/stdout with --csv-export, otherwise required)
--organization ORGANIZATION Only process organization matching this name
-h, --help print help
-v, --verbose be verbose
HELP
end
end
context "import" do
it "update settings w/ Count column" do
set_user 'admin'

Also available in: Unified diff