aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-07-15 14:41:38 -0500
committerJoshua Peek <josh@joshpeek.com>2008-07-15 14:43:52 -0500
commitaca246ab25497bb6787d2e18680e9f73ad13d223 (patch)
treead107ae39feb55960a4f6faf084b3ad8bc56cbec /actionpack/test/template
parent4f72feb84c25b54f66c7192c788b7fd965f2d493 (diff)
downloadrails-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')
-rw-r--r--actionpack/test/template/javascript_helper_test.rb2
-rw-r--r--actionpack/test/template/prototype_helper_test.rb2
2 files changed, 3 insertions, 1 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'))
diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb
index 1d9bc5eb9b..5528430d80 100644
--- a/actionpack/test/template/prototype_helper_test.rb
+++ b/actionpack/test/template/prototype_helper_test.rb
@@ -25,7 +25,7 @@ class Author::Nested < Author; end
class PrototypeHelperBaseTest < ActionView::TestCase
- attr_accessor :template_format
+ attr_accessor :template_format, :output_buffer
def setup
@template = nil