1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Adds test for tap method

This commit is contained in:
Zamith 2014-12-16 22:26:05 +00:00
parent b0846f845c
commit 81b646bd08
No known key found for this signature in database
GPG key ID: 19A0272A28FE3B16

View file

@ -218,4 +218,12 @@ RSpec.describe HTTParty::Response do
expect(headers).to eq({}) expect(headers).to eq({})
end end
end end
describe "#tap" do
it "is possible to tap into a response" do
result = @response.tap(&:code)
expect(result).to eq @response
end
end
end end