aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/filters_test.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-05-02 02:15:09 -0700
committerYehuda Katz <wycats@gmail.com>2009-05-02 02:15:09 -0700
commit72160d9f89481ea60c8268ff026099f07b1e5ed6 (patch)
tree950b7516323658c7012e3ca742b7bd9930a83aa7 /actionpack/test/controller/filters_test.rb
parentad2a1b5cb1afb0ea810cfdcac2ba1be95c55f1aa (diff)
downloadrails-72160d9f89481ea60c8268ff026099f07b1e5ed6.tar.gz
rails-72160d9f89481ea60c8268ff026099f07b1e5ed6.tar.bz2
rails-72160d9f89481ea60c8268ff026099f07b1e5ed6.zip
Implement FooController.action(:name)
* Rails actions are now Rack endpoints, and can be retrieved via FooController.action(name) and called with an env * Updated some tests that relied on the old internal #process/#call implementation
Diffstat (limited to 'actionpack/test/controller/filters_test.rb')
-rw-r--r--actionpack/test/controller/filters_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/controller/filters_test.rb b/actionpack/test/controller/filters_test.rb
index 9e74538310..3b113131ae 100644
--- a/actionpack/test/controller/filters_test.rb
+++ b/actionpack/test/controller/filters_test.rb
@@ -602,8 +602,9 @@ class FilterTest < Test::Unit::TestCase
def test_dynamic_dispatch
%w(foo bar baz).each do |action|
request = ActionController::TestRequest.new
+ request.env["action_controller.rescue.request"] = request
request.query_parameters[:choose] = action
- response = DynamicDispatchController.process(request, ActionController::TestResponse.new)
+ response = DynamicDispatchController.action.call(request.env).last
assert_equal action, response.body
end
end