Browse files

Fix warning: possibly useless use of % in void context

  • Loading branch information...
1 parent a6dbc3f commit 5c02e305fe58eae511920c2c2f9517765ac8ccf2 @kennyj committed May 18, 2012
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 5c02e30

Please sign in to comment.