mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #2285 from castlerock/remove_warnings_ruby193
remove unused variables warnings removed
This commit is contained in:
@@ -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<>", 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
|
||||
|
||||
Reference in New Issue
Block a user