aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/new_render_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-25 21:32:01 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-25 21:32:01 +0000
commit4d2ae8a69914217d992ed1a7e06a5d18074ae622 (patch)
treeae0f6eed499ef3d6f5ec91092d3f8ddc34a98bf2 /actionpack/test/controller/new_render_test.rb
parentcb1aab05528b98fb534c400b1dbe09a540a4436c (diff)
downloadrails-4d2ae8a69914217d992ed1a7e06a5d18074ae622.tar.gz
rails-4d2ae8a69914217d992ed1a7e06a5d18074ae622.tar.bz2
rails-4d2ae8a69914217d992ed1a7e06a5d18074ae622.zip
Partials also set 'object' to the default partial variable. Closes #8823.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/new_render_test.rb')
-rw-r--r--actionpack/test/controller/new_render_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb
index 0ef8ce141b..8a3013bec6 100644
--- a/actionpack/test/controller/new_render_test.rb
+++ b/actionpack/test/controller/new_render_test.rb
@@ -689,12 +689,12 @@ EOS
def test_partial_with_hash_object
get :partial_with_hash_object
- assert_equal "Sam", @response.body
+ assert_equal "Sam\nmaS\n", @response.body
end
def test_hash_partial_collection
get :partial_hash_collection
- assert_equal "PratikAmy", @response.body
+ assert_equal "Pratik\nkitarP\nAmy\nymA\n", @response.body
end
def test_partial_hash_collection_with_locals
@@ -829,4 +829,4 @@ EOS
get :using_layout_around_block
assert_equal "Before (David)\nInside from block\nAfter", @response.body
end
-end \ No newline at end of file
+end