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:
parent
b0846f845c
commit
81b646bd08
1 changed files with 8 additions and 0 deletions
|
@ -218,4 +218,12 @@ RSpec.describe HTTParty::Response do
|
|||
expect(headers).to eq({})
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue