diff options
author | kennyj <kennyj@gmail.com> | 2012-05-19 05:32:43 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-05-19 05:32:43 +0900 |
commit | 5c02e305fe58eae511920c2c2f9517765ac8ccf2 (patch) | |
tree | c5dce15fbf5991e3805266c47dff20c0bb52097e /activesupport | |
parent | a6dbc3fe7a504805572e634d39e37fd63ba7fd45 (diff) | |
download | rails-5c02e305fe58eae511920c2c2f9517765ac8ccf2.tar.gz rails-5c02e305fe58eae511920c2c2f9517765ac8ccf2.tar.bz2 rails-5c02e305fe58eae511920c2c2f9517765ac8ccf2.zip |
Fix warning: possibly useless use of % in void context
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/core_ext/string_ext_test.rb | 2 |
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 |