Merge pull request #2285 from castlerock/remove_warnings_ruby193

remove unused variables warnings removed
This commit is contained in:
Santiago Pastorino
2011-07-26 12:33:34 -07:00

View File

@@ -80,14 +80,12 @@ class SafeBufferTest < ActiveSupport::TestCase
end
test "Should escape dirty buffers on add" do
dirty = @buffer
clean = "hello".html_safe
@buffer.gsub!('', '<>')
assert_equal "hello&lt;&gt;", clean + @buffer
end
test "Should concat as a normal string when dirty" do
dirty = @buffer
clean = "hello".html_safe
@buffer.gsub!('', '<>')
assert_equal "<>hello", @buffer + clean