Skip to content
This repository
Browse code

r2874@asus: jeremy | 2005-07-05 16:13:39 -0700

 Unit test for Ticket #1614.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1717 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 8a2fec8d31c142caad04d66d774c49c23b12f8b5 1 parent 607ce7f
Jeremy Kemper jeremy authored
5 actionpack/test/controller/new_render_test.rb
@@ -69,6 +69,7 @@ def builder_layout_test
69 69 end
70 70
71 71 def partials_list
  72 + @test_unchanged = 'hello'
72 73 @customers = [ Customer.new("david"), Customer.new("mary") ]
73 74 render :action => "list"
74 75 end
@@ -222,7 +223,7 @@ def test_render_xml_with_layouts
222 223
223 224 def test_partials_list
224 225 get :partials_list
225   - assert_equal "Hello: davidHello: mary", @response.body
  226 + assert_equal "goodbyeHello: davidHello: marygoodbye\n", @response.body
226 227 end
227 228
228 229 def test_partial_only
@@ -237,7 +238,7 @@ def test_partial_only_with_layout
237 238
238 239 def test_render_to_string
239 240 get :hello_in_a_string
240   - assert_equal "How's there? Hello: davidHello: mary", @response.body
  241 + assert_equal "How's there? goodbyeHello: davidHello: marygoodbye\n", @response.body
241 242 end
242 243
243 244 def test_nested_rendering
4 actionpack/test/controller/render_test.rb
@@ -174,7 +174,7 @@ def test_render_xml_with_layouts
174 174
175 175 def test_partials_list
176 176 @request.action = "partials_list"
177   - assert_equal "Hello: davidHello: mary", process_request.body
  177 + assert_equal "goodbyeHello: davidHello: marygoodbye\n", process_request.body
178 178 end
179 179
180 180 def test_partial_only
@@ -184,7 +184,7 @@ def test_partial_only
184 184
185 185 def test_render_to_string
186 186 @request.action = "hello_in_a_string"
187   - assert_equal "How's there? Hello: davidHello: mary", process_request.body
  187 + assert_equal "How's there? goodbyeHello: davidHello: marygoodbye\n", process_request.body
188 188 end
189 189
190 190 def test_nested_rendering
2  actionpack/test/fixtures/test/list.rhtml
... ... @@ -1 +1 @@
1   -<%= render_collection_of_partials "customer", @customers %>
  1 +<%= @test_unchanged = 'goodbye' %><%= render_collection_of_partials "customer", @customers %><%= @test_unchanged %>

0 comments on commit 8a2fec8

Please sign in to comment.
Something went wrong with that request. Please try again.