Skip to content

Commit

Permalink
Resolve intermittent test failure related to I18n caching, see rails/…
Browse files Browse the repository at this point in the history
  • Loading branch information
varyonic committed Nov 9, 2023
1 parent 5e96f66 commit 8c14da4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/unit/views/components/tabs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
describe "creating with the dsl" do
context "when creating tabs with a symbol" do
before do
allow(I18n).to receive(:t).with("i18n.transliterate.rule".to_sym, anything).and_call_original
expect(I18n).to receive(:t).at_least(:once).with(:tab_key).and_return "テスト"
end

Expand Down

0 comments on commit 8c14da4

Please sign in to comment.