Update stubbing of default country id in TaxRate tests

This commit is contained in:
Matt-Yorkley
2021-06-01 17:45:28 +01:00
parent e21ef3f182
commit 401dd99225

View File

@@ -289,7 +289,7 @@ module Spree
context "when the default category has tax rates in the default tax zone" do
before(:each) do
Spree::Config[:default_country_id] = country.id
allow(DefaultCountry).to receive(:id) { country.id }
@zone = create(:zone, name: "Country Zone", default_tax: true)
@zone.zone_members.create(zoneable: country)
rate = Spree::TaxRate.create(