spec/discoverer/reader_spec.rb in discoverer-0.0.2 vs spec/discoverer/reader_spec.rb in discoverer-0.0.3
- old
+ new
@@ -47,10 +47,10 @@
include Discoverer::Reader
end
obj = ::Klass.new
- reader = stub 'reader'
+ reader = double 'reader'
Reader::Klass.should_receive( :new ).with( obj ).and_return reader
obj.from.should === reader
obj.from.should === reader
end
\ No newline at end of file