aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-03-15 23:26:48 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2010-03-15 23:26:48 -0700
commitb3b6ff48dff49ebbdab0a53f576bc0572116767f (patch)
treec06880cd98480cb8817801e469161e115df5ced6 /actionpack/test/template
parent9e1e95f70af3c566190f47ee7a52fd49f785ec12 (diff)
downloadrails-b3b6ff48dff49ebbdab0a53f576bc0572116767f.tar.gz
rails-b3b6ff48dff49ebbdab0a53f576bc0572116767f.tar.bz2
rails-b3b6ff48dff49ebbdab0a53f576bc0572116767f.zip
Fix link_to with block
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/url_helper_test.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb
index 165cb655da..87b2e59255 100644
--- a/actionpack/test/template/url_helper_test.rb
+++ b/actionpack/test/template/url_helper_test.rb
@@ -238,10 +238,7 @@ class UrlHelperTest < ActionView::TestCase
end
def test_link_tag_using_block_in_erb
- __in_erb_template = ''
-
- link_to("http://example.com") { concat("Example site") }
-
+ output_buffer = link_to("http://example.com") { concat("Example site") }
assert_equal '<a href="http://example.com">Example site</a>', output_buffer
end