mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove unused variables warnings removed
This commit is contained in:
parent
7b2d5e0d92
commit
d13b5d4b2a
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue