X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6d48655a71908c77b041daae3b4c3631675831ae..86fae8980d97ba7fdd9345eb5e372fd4f8f20b7f:/test/lib/i18n_test.rb?ds=sidebyside diff --git a/test/lib/i18n_test.rb b/test/lib/i18n_test.rb index ea6e4ae27..fe94cbdd3 100644 --- a/test/lib/i18n_test.rb +++ b/test/lib/i18n_test.rb @@ -42,7 +42,7 @@ class I18nTest < ActiveSupport::TestCase assert_includes value, :other, "#{key}.other plural key missing" else - assert value.is_a?(String), "#{key} is not a string" + assert_kind_of String, value, "#{key} is not a string" value.scan(/%\{(\w+)\}/) do assert_includes variables, Regexp.last_match(1), "#{key} uses unknown interpolation variable #{Regexp.last_match(1)}"