module RSpec::Mocks

Constants

ConstantStubber

Keeps backwards compatibility since we had released an rspec-mocks that only supported stubbing. Later, we released the hide_const feature and decided that the term "mutator" was a better term to wrap up the concept of both stubbing and hiding.

Attributes

space[RW]

Public Class Methods

configuration() click to toggle source
# File lib/rspec/mocks.rb, line 26
def configuration
  @configuration ||= Configuration.new
end
setup(host) click to toggle source
# File lib/rspec/mocks.rb, line 10
def setup(host)
  add_extensions unless extensions_added?
  (class << host; self; end).class_eval do
    include RSpec::Mocks::ExampleMethods
  end
  self.space ||= RSpec::Mocks::Space.new
end
teardown() click to toggle source
# File lib/rspec/mocks.rb, line 22
def teardown
  space.reset_all
end
verify() click to toggle source
# File lib/rspec/mocks.rb, line 18
def verify
  space.verify_all
end