diff options
Diffstat (limited to 'actionpack/test/controller/new_render_test.rb')
-rw-r--r-- | actionpack/test/controller/new_render_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb index 7c829e68de..a1af0a0091 100644 --- a/actionpack/test/controller/new_render_test.rb +++ b/actionpack/test/controller/new_render_test.rb @@ -101,6 +101,10 @@ class NewRenderTestController < ActionController::Base def empty_partial_collection render :partial => "customer", :collection => [] end + + def partial_with_hash_object + render :partial => "hash_object", :object => {:first_name => "Sam"} + end def hello_in_a_string @customers = [ Customer.new("david"), Customer.new("mary") ] @@ -371,6 +375,11 @@ class NewRenderTest < Test::Unit::TestCase assert_equal " ", @response.body end + def test_partial_with_hash_object + get :partial_with_hash_object + assert_equal "Sam", @response.body + end + def test_render_text_with_assigns get :render_text_with_assigns assert_equal "world", assigns["hello"] |