Object
@private
# File lib/shoulda/matchers/doublespeak/double_collection.rb, line 19 def activate doubles_by_method_name.each do |method_name, double| double.activate end end
# File lib/shoulda/matchers/doublespeak/double_collection.rb, line 31 def calls_to(method_name) double = doubles_by_method_name[method_name] if double double.calls else [] end end
# File lib/shoulda/matchers/doublespeak/double_collection.rb, line 25 def deactivate doubles_by_method_name.each do |method_name, double| double.deactivate end end
# File lib/shoulda/matchers/doublespeak/double_collection.rb, line 45 def register_double(method_name, implementation_type) implementation = DoubleImplementationRegistry.find(implementation_type) double = Double.new(klass, method_name, implementation) doubles_by_method_name[method_name] = double double end
Generated with the Darkfish Rdoc Generator 2.