spec/acfs/request/callbacks_spec.rb in acfs-0.25.0.1.b227 vs spec/acfs/request/callbacks_spec.rb in acfs-0.25.0.1.b228
- old
+ new
@@ -23,10 +23,10 @@
describe '#complete!' do
let(:response) { Acfs::Response.new(request) }
it 'should trigger registered callbacks with given response' do
- callback.should_receive(:call).with(response, kind_of(Proc))
+ expect(callback).to receive(:call).with(response, kind_of(Proc))
request.on_complete &callback
request.complete! response
end