diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-08 14:14:59 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-07-08 14:15:53 -0700 |
commit | 460079a7717281bb5a20eab0239215f8e0e71de6 (patch) | |
tree | 5a7362dcb7474c39cbedb3d74e04aa3e9e2f5e50 /actionpack/test/controller/resources_test.rb | |
parent | 0f62e3ecf4124ce9f38ea57479bd7252a76ebb15 (diff) | |
download | rails-460079a7717281bb5a20eab0239215f8e0e71de6.tar.gz rails-460079a7717281bb5a20eab0239215f8e0e71de6.tar.bz2 rails-460079a7717281bb5a20eab0239215f8e0e71de6.zip |
let the superclass build the request and response
We should leverage the request / response objects that the superclass
has already allocated for us.
Diffstat (limited to 'actionpack/test/controller/resources_test.rb')
-rw-r--r-- | actionpack/test/controller/resources_test.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb index f3da2df3ef..5a279639cc 100644 --- a/actionpack/test/controller/resources_test.rb +++ b/actionpack/test/controller/resources_test.rb @@ -1207,8 +1207,6 @@ class ResourcesTest < ActionController::TestCase @controller = "#{options[:options][:controller].camelize}Controller".constantize.new @controller.singleton_class.include(@routes.url_helpers) - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new get :index, params: options[:options] options[:options].delete :action @@ -1277,8 +1275,6 @@ class ResourcesTest < ActionController::TestCase (options[:options] ||= {})[:controller] ||= singleton_name.to_s.pluralize @controller = "#{options[:options][:controller].camelize}Controller".constantize.new @controller.singleton_class.include(@routes.url_helpers) - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new get :show, params: options[:options] options[:options].delete :action |