aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-05-19 05:32:43 +0900
committerkennyj <kennyj@gmail.com>2012-05-19 05:32:43 +0900
commit5c02e305fe58eae511920c2c2f9517765ac8ccf2 (patch)
treec5dce15fbf5991e3805266c47dff20c0bb52097e
parenta6dbc3fe7a504805572e634d39e37fd63ba7fd45 (diff)
downloadrails-5c02e305fe58eae511920c2c2f9517765ac8ccf2.tar.gz
rails-5c02e305fe58eae511920c2c2f9517765ac8ccf2.tar.bz2
rails-5c02e305fe58eae511920c2c2f9517765ac8ccf2.zip
Fix warning: possibly useless use of % in void context
-rw-r--r--activesupport/test/core_ext/string_ext_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb
index d3f52c04c4..8437ef1347 100644
--- a/activesupport/test/core_ext/string_ext_test.rb
+++ b/activesupport/test/core_ext/string_ext_test.rb
@@ -465,7 +465,7 @@ class OutputSafetyTest < ActiveSupport::TestCase
test "Concatting with % doesn't modify a string" do
@other_string = ["<p>", "<b>", "<h1>"]
- "%s %s %s".html_safe % @other_string
+ _ = "%s %s %s".html_safe % @other_string
assert_equal ["<p>", "<b>", "<h1>"], @other_string
end