aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/text_helper_test.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-22 16:47:22 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-27 11:19:22 -0300
commit583ddf22a2a9d9f903ff0f2dba72cc04e80a378f (patch)
tree4b20582ac4b4aecc44487d88bc69690d2ac2aa9b /actionpack/test/template/text_helper_test.rb
parentdafb4bd33ba26bf8ca3455db270fee843c8bd2fd (diff)
downloadrails-583ddf22a2a9d9f903ff0f2dba72cc04e80a378f.tar.gz
rails-583ddf22a2a9d9f903ff0f2dba72cc04e80a378f.tar.bz2
rails-583ddf22a2a9d9f903ff0f2dba72cc04e80a378f.zip
Remove more warnings shadowing outer local variable.
Diffstat (limited to 'actionpack/test/template/text_helper_test.rb')
-rw-r--r--actionpack/test/template/text_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb
index 88ec6fc740..43e920f9b5 100644
--- a/actionpack/test/template/text_helper_test.rb
+++ b/actionpack/test/template/text_helper_test.rb
@@ -491,7 +491,7 @@ class TextHelperTest < ActionView::TestCase
url = "http://api.rubyonrails.com/Foo.html"
email = "fantabulous@shiznadel.ic"
- assert_equal %(<p><a href="#{url}">#{url[0...7]}...</a><br /><a href="mailto:#{email}">#{email[0...7]}...</a><br /></p>), auto_link("<p>#{url}<br />#{email}<br /></p>") { |url| truncate(url, :length => 10) }
+ assert_equal %(<p><a href="#{url}">#{url[0...7]}...</a><br /><a href="mailto:#{email}">#{email[0...7]}...</a><br /></p>), auto_link("<p>#{url}<br />#{email}<br /></p>") { |u| truncate(u, :length => 10) }
end
def test_auto_link_with_block_with_html