aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-07-26 12:33:34 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-07-26 12:33:34 -0700
commitd482cf8bfa941b76cce2ae2b60158573615a7d16 (patch)
treebdbb95d0911bd0ad83e13f798c36df4e867f8eca
parent49ebd01d19b5fee2b19e2543abb1493c1977566c (diff)
parentdb34a652772a8549d5b2eb75cf3c7adab61f6507 (diff)
downloadrails-d482cf8bfa941b76cce2ae2b60158573615a7d16.tar.gz
rails-d482cf8bfa941b76cce2ae2b60158573615a7d16.tar.bz2
rails-d482cf8bfa941b76cce2ae2b60158573615a7d16.zip
Merge pull request #2285 from castlerock/remove_warnings_ruby193
remove unused variables warnings removed
-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