From 5c02e305fe58eae511920c2c2f9517765ac8ccf2 Mon Sep 17 00:00:00 2001 From: kennyj Date: Sat, 19 May 2012 05:32:43 +0900 Subject: [PATCH] Fix warning: possibly useless use of % in void context --- activesupport/test/core_ext/string_ext_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb index d3f52c04c4c80..8437ef1347bc6 100644 --- a/activesupport/test/core_ext/string_ext_test.rb +++ b/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 = ["

", "", "

"] - "%s %s %s".html_safe % @other_string + _ = "%s %s %s".html_safe % @other_string assert_equal ["

", "", "

"], @other_string end