mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Update stubbing of default country id in TaxRate tests
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user