spec/spec_helper.rb in batch_actions-0.0.1 vs spec/spec_helper.rb in batch_actions-0.0.2
- old
+ new
@@ -1,9 +1,10 @@
require 'simplecov'
SimpleCov.start
require 'batch_actions'
+require 'action_controller'
class TestModel
def self.where(query)
query[:id].map { self.new }
end
@@ -22,10 +23,10 @@
end
end
end
def mock_controller(params = {}, &block)
- parent = params.delete(:parent) || Object
+ parent = params.delete(:parent) || ActionController::Metal
mock_class = Class.new(parent) do
include BatchActions
def params