mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Avoid global state change by using config stub
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
shared_examples "a model using the LocalizedNumber module" do |attributes|
|
||||
before do
|
||||
Spree::Config[:enable_localized_number?] = true
|
||||
end
|
||||
|
||||
after do
|
||||
Spree::Config[:enable_localized_number?] = false
|
||||
allow(Spree::Config).to receive(:enable_localized_number?).and_return true
|
||||
end
|
||||
|
||||
attributes.each do |attribute|
|
||||
|
||||
Reference in New Issue
Block a user