aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2011-07-26 23:53:54 +0530
committerVishnu Atrai <me@vishnuatrai.com>2011-07-26 23:53:54 +0530
commitdb34a652772a8549d5b2eb75cf3c7adab61f6507 (patch)
treed590c61aa4226bca426da03adc69626347e12b5e /activesupport
parent0868461ee00b350e1a13e6406a69ce0bf03b97f8 (diff)
downloadrails-db34a652772a8549d5b2eb75cf3c7adab61f6507.tar.gz
rails-db34a652772a8549d5b2eb75cf3c7adab61f6507.tar.bz2
rails-db34a652772a8549d5b2eb75cf3c7adab61f6507.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