aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2011-07-26 23:53:54 +0530
committerXavier Noria <fxn@hashref.com>2011-08-13 16:22:18 -0700
commitd13b5d4b2aac3bec055933f1769a7becff374742 (patch)
treea404ebbba8f380c84dc9bf7a710f66930a4bbd8e /activesupport
parent7b2d5e0d920bc196edd2e579f6108f3d4f9d4b0b (diff)
downloadrails-d13b5d4b2aac3bec055933f1769a7becff374742.tar.gz
rails-d13b5d4b2aac3bec055933f1769a7becff374742.tar.bz2
rails-d13b5d4b2aac3bec055933f1769a7becff374742.zip
remove unused variables warnings removed
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/safe_buffer_test.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activesupport/test/safe_buffer_test.rb b/activesupport/test/safe_buffer_test.rb
index 46bc0d7a34..7662e9b765 100644
--- a/activesupport/test/safe_buffer_test.rb
+++ b/activesupport/test/safe_buffer_test.rb
@@ -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