aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/argv_scrubber_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/generators/argv_scrubber_test.rb')
-rw-r--r--railties/test/generators/argv_scrubber_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/test/generators/argv_scrubber_test.rb b/railties/test/generators/argv_scrubber_test.rb
index 3f4c985a33..9ef61dc978 100644
--- a/railties/test/generators/argv_scrubber_test.rb
+++ b/railties/test/generators/argv_scrubber_test.rb
@@ -82,9 +82,8 @@ module Rails
file.puts "--hello --world"
file.flush
- message = nil
scrubber = Class.new(ARGVScrubber) {
- define_method(:puts) { |msg| message = msg }
+ define_method(:puts) { |msg| }
}.new ["new", "--rc=#{file.path}"]
args = scrubber.prepare!
assert_equal ["--hello", "--world"], args