From 8d5b792e7dadf8b2f64b75b6fee51d15fde70699 Mon Sep 17 00:00:00 2001 From: "Sebastian A. Espindola" Date: Sun, 25 Jul 2010 03:37:36 -0300 Subject: Fixed output_buffer encoding problem [#5179] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Santiago Pastorino Signed-off-by: José Valim --- actionpack/test/template/javascript_helper_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actionpack/test/template/javascript_helper_test.rb') diff --git a/actionpack/test/template/javascript_helper_test.rb b/actionpack/test/template/javascript_helper_test.rb index c5c2a6b952..eccb706501 100644 --- a/actionpack/test/template/javascript_helper_test.rb +++ b/actionpack/test/template/javascript_helper_test.rb @@ -89,6 +89,15 @@ class JavaScriptHelperTest < ActionView::TestCase link_to_function("Greeting", "alert('Hello world!')", :href => 'http://example.com/') end + def test_link_to_function_with_inner_block + html = link_to_function("Greet me!") do |page| + content_tag :h1 do + 'Hi' + end + end + end + + def test_javascript_tag self.output_buffer = 'foo' -- cgit v1.2.3