aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/new_base/test_helper.rb
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-04-29 16:33:24 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-05-01 17:31:01 -0700
commit0c3d9bc4c2b329cb754bfed1e465f99d058e1193 (patch)
tree1ef1697cfe82c714549e4367a3ce63e928a4e04e /actionpack/test/new_base/test_helper.rb
parent4f68311685831b940936130203c240fa23525c84 (diff)
downloadrails-0c3d9bc4c2b329cb754bfed1e465f99d058e1193.tar.gz
rails-0c3d9bc4c2b329cb754bfed1e465f99d058e1193.tar.bz2
rails-0c3d9bc4c2b329cb754bfed1e465f99d058e1193.zip
Ported over render :template tests
Diffstat (limited to 'actionpack/test/new_base/test_helper.rb')
-rw-r--r--actionpack/test/new_base/test_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/new_base/test_helper.rb b/actionpack/test/new_base/test_helper.rb
index cc79d6faf7..b40cbb163f 100644
--- a/actionpack/test/new_base/test_helper.rb
+++ b/actionpack/test/new_base/test_helper.rb
@@ -58,6 +58,11 @@ module ActionController
end
end
+ def render_to_body(options = {})
+ options = {:template => options} if options.is_a?(String)
+ super
+ end
+
# append_view_path File.join(File.dirname(__FILE__), '..', 'fixtures')
CORE_METHODS = self.public_instance_methods