Module: ActiveResourceTestHelper
- Defined in:
- lib/active_resource_test_helper.rb
Overview
:nodoc: all
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 |
# File 'lib/active_resource_test_helper.rb', line 6 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#run(*args, &block) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/active_resource_test_helper.rb', line 10 def run(*args, &block) ActiveResource::HttpMock.dynamic_models.each do |model| model.destroy_all end super(*args, &block) ActiveResource::HttpMock.dynamic_models.each do |model| model.destroy_all end end |