module RSpec::Mocks
def setup(host=nil)
def setup(host=nil) host_is_from_rspec_core = defined?(::RSpec::Core::ExampleGroup) && host.is_a?(::RSpec::Core::ExampleGroup) if host unless host_is_from_rspec_core RSpec.deprecate( "The host argument to `RSpec::Mocks.setup`", :replacement => "`include RSpec::Mocks::ExampleMethods` in #{host.inspect}" ) end (class << host; self; end).class_eval do include RSpec::Mocks::ExampleMethods end end space.outside_example = false end