diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-06 21:00:26 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-06 21:15:03 -0200 |
commit | 2382667955df08599cb5df7bf3ef135817093d74 (patch) | |
tree | 51dd2cb4ea08c089e8e9dd1ad3fd45b36771ad8c /actionpack/lib/action_controller/test_case.rb | |
parent | c11102d4f80267e3774985329ea93e7368e8684f (diff) | |
download | rails-2382667955df08599cb5df7bf3ef135817093d74.tar.gz rails-2382667955df08599cb5df7bf3ef135817093d74.tar.bz2 rails-2382667955df08599cb5df7bf3ef135817093d74.zip |
Fix problems trying to functional test AC::Metal controllers
[#5393 state:committed]
Diffstat (limited to 'actionpack/lib/action_controller/test_case.rb')
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 0c26071379..cc27233049 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -411,7 +411,7 @@ module ActionController @controller.request = @request @controller.params.merge!(parameters) build_request_uri(action, parameters) - Base.class_eval { include Testing } + @controller.class.class_eval { include Testing } @controller.process_with_new_base_test(@request, @response) @request.session.delete('flash') if @request.session['flash'].blank? @response @@ -448,7 +448,7 @@ module ActionController def build_request_uri(action, parameters) unless @request.env["PATH_INFO"] - options = @controller.__send__(:url_options).merge(parameters) + options = @controller.respond_to?(:url_options) ? @controller.__send__(:url_options).merge(parameters) : parameters options.update( :only_path => true, :action => action, |