12332 - Add around block to apply default_locale on specs

This commit is contained in:
Ahmed Ejaz
2024-04-09 05:19:45 +05:00
committed by Maikel Linke
parent ec61cff387
commit b2172ef8d8

View File

@@ -59,12 +59,13 @@ describe Spree::Variant do
end
context "price parsing" do
before(:each) do
around(:each) do |spec|
default_locale = I18n.default_locale
I18n.with_locale(default_locale) do
I18n.backend.store_translations(:de,
{ number: { currency: { format: { delimiter: '.',
separator: ',' } } } })
spec.run
end
end