lib/rspec/mocks/test_double.rb in rspec-mocks-2.99.0.beta2 vs lib/rspec/mocks/test_double.rb in rspec-mocks-2.99.0.rc1

- old
+ new

@@ -11,9 +11,10 @@ # # module = Module.new # RSpec::Mocks::TestDouble.extend_onto(module, "MyMixin", :foo => "bar") # module.foo #=> "bar" def self.extend_onto(object, name=nil, stubs_and_options={}) + RSpec.deprecate("`RSpec::Mocks::TestDouble.extend_onto(...)`") object.extend self object.send(:__initialize_as_test_double, name, stubs_and_options) end # Creates a new test double with a `name` (that will be used in error