aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/new_render_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/new_render_test.rb')
-rw-r--r--actionpack/test/controller/new_render_test.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb
index e9c7ee67e1..77e9d5be26 100644
--- a/actionpack/test/controller/new_render_test.rb
+++ b/actionpack/test/controller/new_render_test.rb
@@ -135,6 +135,11 @@ class NewRenderTestController < ActionController::Base
# Action template sets variable that's picked up by layout
end
+ def render_text_with_assigns
+ @hello = "world"
+ render :text => "foo"
+ end
+
def rescue_action(e) raise end
private
@@ -342,4 +347,9 @@ class NewRenderTest < Test::Unit::TestCase
get :partial_collection_with_locals
assert_equal "Bonjour: davidBonjour: mary", @response.body
end
-end \ No newline at end of file
+
+ def test_render_text_with_assigns
+ get :render_text_with_assigns
+ assert_equal "world", assigns["hello"]
+ end
+end