diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-30 16:12:40 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-30 16:12:40 -0700 |
commit | baaf9acaa7f4131c25be13c133eb6d958a88a571 (patch) | |
tree | e0738fd4fa64c52fd609c68678a1c008c85906a4 /railties/test | |
parent | 169fa516c3178077eb9a35fa757063de936be53c (diff) | |
download | rails-baaf9acaa7f4131c25be13c133eb6d958a88a571.tar.gz rails-baaf9acaa7f4131c25be13c133eb6d958a88a571.tar.bz2 rails-baaf9acaa7f4131c25be13c133eb6d958a88a571.zip |
adding a test for --help defaults
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/argv_scrubber_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/argv_scrubber_test.rb b/railties/test/generators/argv_scrubber_test.rb index 97aa1bce52..5b0a023428 100644 --- a/railties/test/generators/argv_scrubber_test.rb +++ b/railties/test/generators/argv_scrubber_test.rb @@ -21,6 +21,13 @@ module Rails end end + def test_default_help + argv = ['zomg', 'how', 'are', 'you'] + scrubber = ARGVScrubber.new argv + args = scrubber.prepare! + assert_equal ['--help'] + argv.drop(1), args + end + def test_prepare_returns_args scrubber = ARGVScrubber.new ['hi mom'] args = scrubber.prepare! |