diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-08-08 12:54:02 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-08-08 12:54:02 -0300 |
commit | ad98827a78d0ee13c5d3b8c5caf2fccfa294277c (patch) | |
tree | c66a41b020dbecd209d4f8de2850eefaa06ba793 /actionpack/test | |
parent | efcfce50c417975ee038a107755a1542a690d39b (diff) | |
parent | 016ed9b4298d187182d05340baddbe98f4eb8fb5 (diff) | |
download | rails-ad98827a78d0ee13c5d3b8c5caf2fccfa294277c.tar.gz rails-ad98827a78d0ee13c5d3b8c5caf2fccfa294277c.tar.bz2 rails-ad98827a78d0ee13c5d3b8c5caf2fccfa294277c.zip |
Merge commit 'jose/responder'
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/mime_responds_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb index 00ad90ff68..8319b5c573 100644 --- a/actionpack/test/controller/mime_responds_test.rb +++ b/actionpack/test/controller/mime_responds_test.rb @@ -505,9 +505,9 @@ class RespondWithController < ActionController::Base respond_with(Customer.new("david", 13), :location => "http://test.host/", :status => :created) end - def using_resource_with_renderer - renderer = proc { |c, r, o| c.render :text => "Resource name is #{r.name}" } - respond_with(Customer.new("david", 13), :renderer => renderer) + def using_resource_with_responder + responder = proc { |c, r, o| c.render :text => "Resource name is #{r.name}" } + respond_with(Customer.new("david", 13), :responder => responder) end protected @@ -743,8 +743,8 @@ class RespondWithControllerTest < ActionController::TestCase assert_equal 201, @response.status end - def test_using_resource_with_renderer - get :using_resource_with_renderer + def test_using_resource_with_responder + get :using_resource_with_responder assert_equal "Resource name is david", @response.body end |