Skip to content

Commit

Permalink
Only attempt to set fallbacks= in tests if method is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Feb 12, 2021
1 parent 3951eee commit aae36c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def teardown
I18n.backend = nil
I18n.default_separator = nil
I18n.enforce_available_locales = true
I18n.fallbacks = nil
I18n.fallbacks = nil if I18n.respond_to?(:fallbacks=)
super
end

Expand Down

0 comments on commit aae36c2

Please sign in to comment.