class RSpec::Mocks::Configuration
def add_stub_and_should_receive_to(*modules)
end
end
mocks.add_stub_and_should_receive_to Delegator
rspec.mock_with :rspec do |mocks|
RSpec.configure do |rspec|
@example
the process.
methods and remove `stub` and `should_receive` in
"strip themselves down" to a bare minimum set of
if you application uses some proxy classes that
modules or classes. This is usually only necessary
Adds `stub` and `should_receive` to the given
def add_stub_and_should_receive_to(*modules) modules.each do |mod| Syntax.enable_should(mod) end end