diff options
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/new_render_test.rb | 6 | ||||
-rw-r--r-- | actionpack/test/fixtures/test/_hash_object.erb | 3 |
2 files changed, 5 insertions, 4 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 diff --git a/actionpack/test/fixtures/test/_hash_object.erb b/actionpack/test/fixtures/test/_hash_object.erb index 037a7368d6..55c03afb27 100644 --- a/actionpack/test/fixtures/test/_hash_object.erb +++ b/actionpack/test/fixtures/test/_hash_object.erb @@ -1 +1,2 @@ -<%= hash_object[:first_name] %>
\ No newline at end of file +<%= hash_object[:first_name] %> +<%= object[:first_name].reverse %> |