spec/persistent_spec.rb in dagger-1.3.1 vs spec/persistent_spec.rb in dagger-1.4.0
- old
+ new
@@ -7,9 +7,10 @@
it 'works' do
fake_client = double('Client')
expect(Dagger::Client).to receive(:new).once.and_return(fake_client)
expect(fake_client).to receive(:open).once #.and_return(fake_resp)
+ expect(fake_client).to receive(:close).once #.and_return(fake_resp)
obj = Dagger.open('https://www.google.com') do
get('/search?q=dagger+http+client')
get('google.com/search?q=thank+you+ruby')
end
\ No newline at end of file