aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/javascript_helper_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-06-02 13:32:58 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-06-02 21:32:50 -0700
commit0bdb7d353b4ac6f5470884360f9a480a16bd709c (patch)
tree53d266015cf696c280b9ba37995c9d1f6bd02358 /actionpack/test/template/javascript_helper_test.rb
parent933697a5fc5f4c56c4fd7fbbd31b8973df9c1054 (diff)
downloadrails-0bdb7d353b4ac6f5470884360f9a480a16bd709c.tar.gz
rails-0bdb7d353b4ac6f5470884360f9a480a16bd709c.tar.bz2
rails-0bdb7d353b4ac6f5470884360f9a480a16bd709c.zip
Work with @output_buffer instead of _erbout
Diffstat (limited to 'actionpack/test/template/javascript_helper_test.rb')
-rw-r--r--actionpack/test/template/javascript_helper_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/test/template/javascript_helper_test.rb b/actionpack/test/template/javascript_helper_test.rb
index f18adb990c..f136f56777 100644
--- a/actionpack/test/template/javascript_helper_test.rb
+++ b/actionpack/test/template/javascript_helper_test.rb
@@ -92,15 +92,15 @@ class JavaScriptHelperTest < ActionView::TestCase
end
def test_javascript_tag_with_block
- _erbout = ''
- javascript_tag { _erbout.concat "alert('hello')" }
- assert_dom_equal "<script type=\"text/javascript\">\n//<![CDATA[\nalert('hello')\n//]]>\n</script>", _erbout
+ @output_buffer = ''
+ javascript_tag { @output_buffer.concat "alert('hello')" }
+ assert_dom_equal "<script type=\"text/javascript\">\n//<![CDATA[\nalert('hello')\n//]]>\n</script>", @output_buffer
end
def test_javascript_tag_with_block_and_options
- _erbout = ''
- javascript_tag(:id => "the_js_tag") { _erbout.concat "alert('hello')" }
- assert_dom_equal "<script id=\"the_js_tag\" type=\"text/javascript\">\n//<![CDATA[\nalert('hello')\n//]]>\n</script>", _erbout
+ @output_buffer = ''
+ javascript_tag(:id => "the_js_tag") { @output_buffer.concat "alert('hello')" }
+ assert_dom_equal "<script id=\"the_js_tag\" type=\"text/javascript\">\n//<![CDATA[\nalert('hello')\n//]]>\n</script>", @output_buffer
end
def test_javascript_cdata_section