X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/124ec2e9d560e0df291e5a8e5aa67ef5db2f5d46..123c7d10a5e798e2379dfb04df4a22b1deface3c:/test/models/language_test.rb diff --git a/test/models/language_test.rb b/test/models/language_test.rb index f6a6e3234..f777d8e19 100644 --- a/test/models/language_test.rb +++ b/test/models/language_test.rb @@ -1,5 +1,3 @@ -# coding: utf-8 - require "test_helper" class LanguageTest < ActiveSupport::TestCase @@ -8,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