We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f8b02 commit 4df8efaCopy full SHA for 4df8efa
spec/after_commit_everywhere_spec.rb
@@ -120,7 +120,7 @@
120
end
121
expect(handler).to have_received(:call).with(:de)
122
ensure
123
- I18n.enforce_available_locales = true
+ I18n.enforce_available_locales = old_enforce_available_locales
124
125
126
@@ -307,6 +307,7 @@
307
308
309
it "preserves the locale" do
310
+ old_enforce_available_locales = I18n.enforce_available_locales
311
I18n.enforce_available_locales = false
312
313
ActiveRecord::Base.transaction do
@@ -315,8 +316,8 @@
315
316
expect(handler).not_to have_received(:call)
317
318
-
319
+ ensure
320
321
322
323
0 commit comments