spec/grocer/push_connection_spec.rb in grocer-0.5.0 vs spec/grocer/push_connection_spec.rb in grocer-0.6.0
- old
+ new
@@ -2,10 +2,10 @@
require 'grocer/push_connection'
describe Grocer::PushConnection do
subject { described_class.new(options) }
let(:options) { { certificate: '/path/to/cert.pem' } }
- let(:connection) { stub('Connection') }
+ let(:connection) { double('Connection') }
it 'delegates reading to the Connection' do
Grocer::Connection.any_instance.expects(:read).with(42, 'lolIO')
subject.read(42, 'lolIO')
end