aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-30 16:37:33 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-30 16:37:33 -0700
commit19ca0952bbdcf744f12d2bedb267dff20618e149 (patch)
tree41a394c3eea0923f3f0b87157e8b6aba6cd97e4b /railties/test
parent36ea8e6a3bb75753dd64032d1a8ebff0ffcdca68 (diff)
downloadrails-19ca0952bbdcf744f12d2bedb267dff20618e149.tar.gz
rails-19ca0952bbdcf744f12d2bedb267dff20618e149.tar.bz2
rails-19ca0952bbdcf744f12d2bedb267dff20618e149.zip
there is no reason for ARGV[0] to be nil
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/argv_scrubber_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/argv_scrubber_test.rb b/railties/test/generators/argv_scrubber_test.rb
index 5e86acfde5..56df1cec02 100644
--- a/railties/test/generators/argv_scrubber_test.rb
+++ b/railties/test/generators/argv_scrubber_test.rb
@@ -67,7 +67,7 @@ module Rails
define_method(:puts) { |msg| message = msg }
}.new ['new']
args = scrubber.prepare!
- assert_equal [nil, '--hello-world'], args
+ assert_equal ['--hello-world'], args
assert_match 'hello-world', message
assert_match file.path, message
ensure
@@ -85,7 +85,7 @@ module Rails
define_method(:puts) { |msg| message = msg }
}.new ['new', "--rc=#{file.path}"]
args = scrubber.prepare!
- assert_equal [nil, '--hello-world'], args
+ assert_equal ['--hello-world'], args
assert_match 'hello-world', message
assert_match file.path, message
ensure