module RSpec::Mocks::ExampleMethods

def declare_double(declared_as, *args)

def declare_double(declared_as, *args)
  args << {} unless Hash === args.last
  args.last[:__declared_as] = declared_as
  RSpec::Mocks::Mock.new(*args)
end