Permalink
Browse files

adding a test for --help defaults

  • Loading branch information...
1 parent 169fa51 commit baaf9acaa7f4131c25be13c133eb6d958a88a571 @tenderlove tenderlove committed Oct 30, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 railties/test/generators/argv_scrubber_test.rb
@@ -21,6 +21,13 @@ def test_version
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!

0 comments on commit baaf9ac

Please sign in to comment.