aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-03-07 14:05:18 -0600
committerJoshua Peek <josh@joshpeek.com>2009-03-07 14:05:18 -0600
commitea8488caef77cb8cf2031d344e74981ab6ea0e57 (patch)
treed5aa0502f58ef3354c2baaed0779b19f11b4aa24 /actionpack/test/template
parent87e8b162463f13bd50d27398f020769460a770e3 (diff)
downloadrails-ea8488caef77cb8cf2031d344e74981ab6ea0e57.tar.gz
rails-ea8488caef77cb8cf2031d344e74981ab6ea0e57.tar.bz2
rails-ea8488caef77cb8cf2031d344e74981ab6ea0e57.zip
Fixed simplified render with nested models [#2042 state:resolved]
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/render_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/render_test.rb b/actionpack/test/template/render_test.rb
index b042eb3d9b..9adf053b09 100644
--- a/actionpack/test/template/render_test.rb
+++ b/actionpack/test/template/render_test.rb
@@ -145,6 +145,10 @@ module RenderTestCases
assert_equal File.expand_path("#{FIXTURE_LOAD_PATH}/test/_raise.html.erb"), e.file_name
end
+ def test_render_object
+ assert_equal "Hello: david", @view.render(:partial => "test/customer", :object => Customer.new("david"))
+ end
+
def test_render_partial_collection
assert_equal "Hello: davidHello: mary", @view.render(:partial => "test/customer", :collection => [ Customer.new("david"), Customer.new("mary") ])
end