2014-04-20 00:01:22 +00:00
|
|
|
require 'forwardable'
|
|
|
|
|
|
|
|
module Shoulda
|
|
|
|
module Matchers
|
2014-01-23 18:07:36 +00:00
|
|
|
# @private
|
2014-04-20 00:01:22 +00:00
|
|
|
module Doublespeak
|
|
|
|
class << self
|
|
|
|
extend Forwardable
|
|
|
|
|
2014-06-12 22:12:54 +00:00
|
|
|
def_delegators :world, :double_collection_for,
|
2014-04-20 00:01:22 +00: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-03-01 03:47:39 +00:00
|
|
|
require 'shoulda/matchers/doublespeak/method_call'
|
2014-04-20 00:01:22 +00:00
|
|
|
require 'shoulda/matchers/doublespeak/object_double'
|
|
|
|
require 'shoulda/matchers/doublespeak/proxy_implementation'
|
|
|
|
require 'shoulda/matchers/doublespeak/stub_implementation'
|
|
|
|
require 'shoulda/matchers/doublespeak/world'
|