Skip to content

Commit

Permalink
Merge pull request #663 from amatsuda/fix_rails_edge_ci
Browse files Browse the repository at this point in the history
A fix for failing CI against edge Rails
  • Loading branch information
radar committed Jun 2, 2023
2 parents 26ae7f6 + 8aa685a commit 0bbef26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/backend/cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ def teardown
I18n.t(:missing, :scope => :foo, :extra => true)
assert_equal 1, I18n.cache_store.instance_variable_get(:@data).size

_, entry = I18n.cache_store.instance_variable_get(:@data).first
assert_equal({ scope: :foo }, entry.value.options)
value = I18n.cache_store.read(I18n.cache_store.instance_variable_get(:@data).keys.first)

assert_equal({ scope: :foo }, value.options)
end

test "uses 'i18n' as a cache key namespace by default" do
Expand Down

0 comments on commit 0bbef26

Please sign in to comment.