From d9033bbb28f4acce74dcd2a1c1c5536b7a1917da Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 27 Jul 2005 12:06:19 +0000 Subject: Demonstrate breakage better git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1941 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/new_render_test.rb | 4 ++-- actionpack/test/fixtures/test/_customer.rhtml | 2 +- actionpack/test/fixtures/test/_customer_greeting.rhtml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 actionpack/test/fixtures/test/_customer_greeting.rhtml (limited to 'actionpack') diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb index 6d2aa2cd2d..da8b2b2a46 100644 --- a/actionpack/test/controller/new_render_test.rb +++ b/actionpack/test/controller/new_render_test.rb @@ -91,7 +91,7 @@ class NewRenderTestController < ActionController::Base end def partial_collection_with_locals - render :partial => "customer", :collection => [ Customer.new("david"), Customer.new("mary") ], :locals => { :extra => ", fun!" } + render :partial => "customer_greeting", :collection => [ Customer.new("david"), Customer.new("mary") ], :locals => { :greeting => "Bonjour" } end def hello_in_a_string @@ -340,6 +340,6 @@ class NewRenderTest < Test::Unit::TestCase def test_partial_collection_with_locals get :partial_collection_with_locals - assert_equal "Hello: david, fun!Hello: mary, fun!", @response.body + assert_equal "Bonjour: davidBonjour: mary", @response.body end end \ No newline at end of file diff --git a/actionpack/test/fixtures/test/_customer.rhtml b/actionpack/test/fixtures/test/_customer.rhtml index fc2d3f26b2..872d8c44e6 100644 --- a/actionpack/test/fixtures/test/_customer.rhtml +++ b/actionpack/test/fixtures/test/_customer.rhtml @@ -1 +1 @@ -Hello: <%= customer.name %><%= extra %> \ No newline at end of file +Hello: <%= customer.name %> \ No newline at end of file diff --git a/actionpack/test/fixtures/test/_customer_greeting.rhtml b/actionpack/test/fixtures/test/_customer_greeting.rhtml new file mode 100644 index 0000000000..6acbcb20c4 --- /dev/null +++ b/actionpack/test/fixtures/test/_customer_greeting.rhtml @@ -0,0 +1 @@ +<%= greeting %>: <%= customer_greeting.name %> \ No newline at end of file -- cgit v1.2.3