Skip to content
Browse files

Merge pull request #6388 from kennyj/fix_warning_20120519

Fix warning: possibly useless use of % in void context
  • Loading branch information...
2 parents 906009c + 5c02e30 commit 8b4ecbebaa402610d1a21bb012efdbb24da1d110 @rafaelfranca rafaelfranca committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/test/core_ext/string_ext_test.rb
View
2 activesupport/test/core_ext/string_ext_test.rb
@@ -465,7 +465,7 @@ def to_s
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

0 comments on commit 8b4ecbe

Please sign in to comment.
Something went wrong with that request. Please try again.