X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0d3a9ed9cb47ce3b89ea9eaffbb589f9a9ff6d22..b76bfe379e6527c9cfc2ced97aa615f8c2c45dd7:/test/unit/i18n_test.rb diff --git a/test/unit/i18n_test.rb b/test/unit/i18n_test.rb index c1dacbff2..2fb13824c 100644 --- a/test/unit/i18n_test.rb +++ b/test/unit/i18n_test.rb @@ -24,6 +24,10 @@ class I18nTest < ActiveSupport::TestCase end end + if key =~ /^(active(model|record)\.)?errors\./ + variables.push("attribute") + end + value = I18n.t(key, :locale => locale, :fallback => true) if value.is_a?(Hash)