Skip to content

Commit

Permalink
Fix warning: possibly useless use of % in void context
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyj committed May 18, 2012
1 parent a6dbc3f commit 5c02e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/test/core_ext/string_ext_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def to_s


test "Concatting with % doesn't modify a string" do test "Concatting with % doesn't modify a string" do
@other_string = ["<p>", "<b>", "<h1>"] @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 assert_equal ["<p>", "<b>", "<h1>"], @other_string
end end
Expand Down

0 comments on commit 5c02e30

Please sign in to comment.