Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Fix silently broken test case
Browse files Browse the repository at this point in the history
Pull test case out of setup.
  • Loading branch information
sgerrand committed Jul 12, 2024
1 parent eaf8a35 commit 56c3a34
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions spec/duffel_api/services/offers_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,16 @@
context "with parameters" do
let!(:stub) do
stub_request(:get, "https://api.duffel.com/air/offers/off_0000AEdGRhtp5AUUdJqMxo").
with(query: { "return_available_services" => true })
to_return(
body: response_body,
headers: response_headers,
)
it "makes the expected request to the Duffel API" do
client.offers.get(id, params: { return_available_services: true })
expect(stub).to have_been_requested
end
with(query: { "return_available_services" => true }).
to_return(
body: response_body,
headers: response_headers,
)
end

it "makes the expected request to the Duffel API" do
client.offers.get(id, params: { return_available_services: true })
expect(stub).to have_been_requested
end
end
end
Expand Down

0 comments on commit 56c3a34

Please sign in to comment.