diff --git a/spec/service_consumer/pact_helper.rb b/spec/service_consumer/pact_helper.rb index 2bedf8f..8e81069 100644 --- a/spec/service_consumer/pact_helper.rb +++ b/spec/service_consumer/pact_helper.rb @@ -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