diff --git a/spec/i18n_spec.rb b/spec/i18n_spec.rb index 61687d4a427..d8cb8a20fbe 100644 --- a/spec/i18n_spec.rb +++ b/spec/i18n_spec.rb @@ -89,7 +89,8 @@ end def extract_interpolation_arguments(translation) - translation.scan(I18n::INTERPOLATION_PATTERN).map(&:compact).map(&:first).to_set + translation.scan(Regexp.union(I18n::DEFAULT_INTERPOLATION_PATTERNS)). + map(&:compact).map(&:first).to_set end def flatten_hash(hash, parent_keys: [], out_hash: {}, &block)