module RSpec::Mocks

def add_extensions

def add_extensions
  Object.class_eval { include RSpec::Mocks::Methods }
  Class.class_eval  { include RSpec::Mocks::AnyInstance }
  $_rspec_mocks_extensions_added = true
end

def extensions_added?

def extensions_added?
  defined?($_rspec_mocks_extensions_added)
end

def setup(host)

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

def teardown

def teardown
  space.reset_all
end

def verify

def verify
  space.verify_all
end