diff options
Diffstat (limited to 'actionwebservice/test')
-rw-r--r-- | actionwebservice/test/abstract_dispatcher.rb | 8 | ||||
-rw-r--r-- | actionwebservice/test/abstract_unit.rb | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/actionwebservice/test/abstract_dispatcher.rb b/actionwebservice/test/abstract_dispatcher.rb index 12ab08019f..e01d902ae1 100644 --- a/actionwebservice/test/abstract_dispatcher.rb +++ b/actionwebservice/test/abstract_dispatcher.rb @@ -155,8 +155,8 @@ module DispatcherTest web_service_dispatching_mode :direct wsdl_namespace WsdlNamespace - before_filter :alwaysfail, :only => [:before_filtered] - after_filter :alwaysok, :only => [:after_filtered] + before_invocation :alwaysfail, :only => [:before_filtered] + after_invocation :alwaysok, :only => [:after_filtered] attr :added attr :added2 @@ -232,12 +232,12 @@ module DispatcherTest end protected - def alwaysfail + def alwaysfail(method_name, params) @before_filter_called = true false end - def alwaysok + def alwaysok(method_name, params, return_value) @after_filter_called = true end end diff --git a/actionwebservice/test/abstract_unit.rb b/actionwebservice/test/abstract_unit.rb index cbeda66e90..a57299bea0 100644 --- a/actionwebservice/test/abstract_unit.rb +++ b/actionwebservice/test/abstract_unit.rb @@ -1,7 +1,11 @@ ENV["RAILS_ENV"] = "test" $:.unshift(File.dirname(__FILE__) + '/../lib') +$:.unshift(File.dirname(__FILE__) + '/../../activesupport/lib') +$:.unshift(File.dirname(__FILE__) + '/../../actionpack/lib') +$:.unshift(File.dirname(__FILE__) + '/../../activerecord/lib') require 'test/unit' +require 'active_record' require 'action_web_service' require 'action_controller' require 'action_controller/test_process' |