diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-04-30 23:31:20 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-04-30 23:46:34 -0500 |
commit | 1fcc7dbcc8dcf7f1d42ca8486ad313f0c805033a (patch) | |
tree | 4ff5acd5af83ae7b771f863505fd52a838a46a27 /actionpack/lib/action_dispatch/testing | |
parent | dc9f53b05b650614520086ae780ca5e58efe65b1 (diff) | |
download | rails-1fcc7dbcc8dcf7f1d42ca8486ad313f0c805033a.tar.gz rails-1fcc7dbcc8dcf7f1d42ca8486ad313f0c805033a.tar.bz2 rails-1fcc7dbcc8dcf7f1d42ca8486ad313f0c805033a.zip |
Move TestRequest#query_parameters into AD TestRequest
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/test_request.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/testing/test_request.rb b/actionpack/lib/action_dispatch/testing/test_request.rb index bd6c26b69b..5d8cd7e619 100644 --- a/actionpack/lib/action_dispatch/testing/test_request.rb +++ b/actionpack/lib/action_dispatch/testing/test_request.rb @@ -39,6 +39,10 @@ module ActionDispatch @env['PATH_INFO'] = path end + def action=(action_name) + path_parameters["action"] = action_name.to_s + end + def if_modified_since=(last_modified) @env['HTTP_IF_MODIFIED_SINCE'] = last_modified end |