diff options
Diffstat (limited to 'railties')
-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! |