X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a..7406ae5dcc9cbb177a8ea33085af9caf6e3ebb1b:/test/models/language_test.rb?ds=inline diff --git a/test/models/language_test.rb b/test/models/language_test.rb index 5ba558907..f777d8e19 100644 --- a/test/models/language_test.rb +++ b/test/models/language_test.rb @@ -6,6 +6,11 @@ class LanguageTest < ActiveSupport::TestCase assert_equal "Slovenian (slovenščina)", Language.find("sl").name end + def test_same_native_name + create(:language, :code => "af", :english_name => "Afrikaans", :native_name => "Afrikaans") + assert_equal "Afrikaans", Language.find("af").name + end + def test_load assert_equal 0, Language.count assert_raise ActiveRecord::RecordNotFound do