2014-04-19 20:01:22 -04:00
|
|
|
require 'forwardable'
|
|
|
|
|
|
|
|
module Shoulda
|
|
|
|
module Matchers
|
2014-01-23 13:07:36 -05:00
|
|
|
# @private
|
2014-04-19 20:01:22 -04:00
|
|
|
module Doublespeak
|
|
|
|
class << self
|
|
|
|
extend Forwardable
|
|
|
|
|
2014-06-12 18:12:54 -04:00
|
|
|
def_delegators :world, :double_collection_for,
|
2014-04-19 20:01:22 -04:00
|
|
|
:with_doubles_activated
|
|
|
|
|
|
|
|
def world
|
|
|
|
@_world ||= World.new
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
require 'shoulda/matchers/doublespeak/double'
|
|
|
|
require 'shoulda/matchers/doublespeak/double_collection'
|
|
|
|
require 'shoulda/matchers/doublespeak/double_implementation_registry'
|
2015-02-28 22:47:39 -05:00
|
|
|
require 'shoulda/matchers/doublespeak/method_call'
|
2014-04-19 20:01:22 -04:00
|
|
|
require 'shoulda/matchers/doublespeak/object_double'
|
|
|
|
require 'shoulda/matchers/doublespeak/proxy_implementation'
|
|
|
|
require 'shoulda/matchers/doublespeak/stub_implementation'
|
|
|
|
require 'shoulda/matchers/doublespeak/world'
|