spec/grocer/pusher_spec.rb in grocer-0.5.0 vs spec/grocer/pusher_spec.rb in grocer-0.6.0
- old
+ new
@@ -9,9 +9,9 @@
describe '#push' do
it 'serializes a notification and sends it via the connection' do
notification = stub(:to_bytes => 'abc123')
subject.push(notification)
- connection.should have_received(:write).with('abc123')
+ expect(connection).to have_received(:write).with('abc123')
end
end
end