Skip to content

Commit

Permalink
not necessary but add stub body
Browse files Browse the repository at this point in the history
  • Loading branch information
one-m1nd committed Mar 4, 2024
1 parent 43b2df4 commit 897e483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/plant_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
before(:each) do
stub_request(:get, "https://trefle.io/api/v1/plants/search")
.with(query: { q: Plant.first.name })
.to_return(status: 404, headers: { 'Content-Type' => 'application/json' })
.to_return(status: 404, body: '{}', headers: { 'Content-Type' => 'application/json' })

end

Expand Down

0 comments on commit 897e483

Please sign in to comment.