diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-05-18 13:37:28 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-05-18 13:37:28 -0700 |
commit | 8b4ecbebaa402610d1a21bb012efdbb24da1d110 (patch) | |
tree | 2812e65f6cd6dd01ea0d489ee0e9ca7d85d20d86 | |
parent | 906009cc18e8f9a7db1151fa4537dadd7c7f810a (diff) | |
parent | 5c02e305fe58eae511920c2c2f9517765ac8ccf2 (diff) | |
download | rails-8b4ecbebaa402610d1a21bb012efdbb24da1d110.tar.gz rails-8b4ecbebaa402610d1a21bb012efdbb24da1d110.tar.bz2 rails-8b4ecbebaa402610d1a21bb012efdbb24da1d110.zip |
Merge pull request #6388 from kennyj/fix_warning_20120519
Fix warning: possibly useless use of % in void context
-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 |