aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-10-12 15:04:33 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-10-12 15:04:33 +0900
commit73c991c411d2afeaee7a7d6f4443fa687e86608a (patch)
tree2c195bb79d400444f4c68228b87061edfe9dd074 /railties
parent68a2888ef08faf38c0643921a8259beef5fbe630 (diff)
downloadrails-73c991c411d2afeaee7a7d6f4443fa687e86608a.tar.gz
rails-73c991c411d2afeaee7a7d6f4443fa687e86608a.tar.bz2
rails-73c991c411d2afeaee7a7d6f4443fa687e86608a.zip
Fix "warning: assigned but unused variable - message"
Ruby 2.5 warns about this. Ref: https://travis-ci.org/rails/rails/jobs/286338999
Diffstat (limited to 'railties')
-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