Skip to content

Commit

Permalink
Fix set_up/tear_down order
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Oct 2, 2023
1 parent 5447d80 commit 01b02f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/service_consumer/pact_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def url_encode(str)
set_up do
ENV["OS_PLACES_API_KEY"] = "some_key"
ENV["OS_PLACES_API_SECRET"] = "some_secret"
end

tear_down do
postcode = Postcode.find_by(postcode: "SW1A1AA")
postcode.destroy unless postcode.nil?
end
Expand Down

0 comments on commit 01b02f6

Please sign in to comment.