class RSpec::Mocks::Configuration

Provides configuration options for rspec-mocks.

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

def syntax

def syntax
  syntaxes = []
  syntaxes << :should  if Syntax.should_enabled?
  syntaxes << :expect if Syntax.expect_enabled?
  syntaxes
end

def syntax=(values)

def syntax=(values)
  if Array(values).include?(:expect)
    Syntax.enable_expect
  else
    Syntax.disable_expect
  end
  if Array(values).include?(:should)
    Syntax.enable_should
  else
    Syntax.disable_should
  end
end