lib/rspec/mocks/test_double.rb in rspec-mocks-3.0.2 vs lib/rspec/mocks/test_double.rb in rspec-mocks-3.0.3

- old
+ new

@@ -117,9 +117,14 @@ def __raise_expired_error return false unless @__expired ErrorGenerator.new(self, @name).raise_expired_test_double_error end + + def initialize_copy(other) + as_null_object if other.null_object? + super + end end # A generic test double object. `double`, `instance_double` and friends # return an instance of this. class Double