aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract_controller/abstract_controller_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-04-17 18:34:49 -0500
committerJeremy Kemper <jeremy@bitsweat.net>2009-04-17 18:34:49 -0500
commitdf42d26f990cd013c8d80505a9a92537fbcaa4bf (patch)
treec84690847806110293b082a23449cfb6deda1eec /actionpack/test/abstract_controller/abstract_controller_test.rb
parentecdc0643f21fa6e4fc75aecc8b3be547f60c3bbc (diff)
downloadrails-df42d26f990cd013c8d80505a9a92537fbcaa4bf.tar.gz
rails-df42d26f990cd013c8d80505a9a92537fbcaa4bf.tar.bz2
rails-df42d26f990cd013c8d80505a9a92537fbcaa4bf.zip
Rename render_to_string to render_to_body since it may return any Rack-compatible body, not just strings
Diffstat (limited to 'actionpack/test/abstract_controller/abstract_controller_test.rb')
-rw-r--r--actionpack/test/abstract_controller/abstract_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/abstract_controller/abstract_controller_test.rb b/actionpack/test/abstract_controller/abstract_controller_test.rb
index 6d33888821..8763ded57e 100644
--- a/actionpack/test/abstract_controller/abstract_controller_test.rb
+++ b/actionpack/test/abstract_controller/abstract_controller_test.rb
@@ -134,7 +134,7 @@ module AbstractController
self.class.layout(formats)
end
- def render_to_string(options = {})
+ def render_to_body(options = {})
options[:_layout] = options[:layout] || _layout
super
end
@@ -223,4 +223,4 @@ module AbstractController
end
end
-end \ No newline at end of file
+end