diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-15 14:41:38 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-15 14:43:52 -0500 |
commit | aca246ab25497bb6787d2e18680e9f73ad13d223 (patch) | |
tree | ad107ae39feb55960a4f6faf084b3ad8bc56cbec /actionpack/test/template/javascript_helper_test.rb | |
parent | 4f72feb84c25b54f66c7192c788b7fd965f2d493 (diff) | |
download | rails-aca246ab25497bb6787d2e18680e9f73ad13d223.tar.gz rails-aca246ab25497bb6787d2e18680e9f73ad13d223.tar.bz2 rails-aca246ab25497bb6787d2e18680e9f73ad13d223.zip |
Get buffer for fragment cache from template's @output_buffer
Diffstat (limited to 'actionpack/test/template/javascript_helper_test.rb')
-rw-r--r-- | actionpack/test/template/javascript_helper_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/javascript_helper_test.rb b/actionpack/test/template/javascript_helper_test.rb index b2c4a130c8..36dfeba5ed 100644 --- a/actionpack/test/template/javascript_helper_test.rb +++ b/actionpack/test/template/javascript_helper_test.rb @@ -3,6 +3,8 @@ require 'abstract_unit' class JavaScriptHelperTest < ActionView::TestCase tests ActionView::Helpers::JavaScriptHelper + attr_accessor :output_buffer + def test_escape_javascript assert_equal '', escape_javascript(nil) assert_equal %(This \\"thing\\" is really\\n netos\\'), escape_javascript(%(This "thing" is really\n netos')) |