X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c365e2b28ac47e27b8cbbaca27fde59dedafdbca..424a0fa345e5d35f36aebfa5567655f267625504:/test/models/language_test.rb diff --git a/test/models/language_test.rb b/test/models/language_test.rb index 9b2ef72c1..f777d8e19 100644 --- a/test/models/language_test.rb +++ b/test/models/language_test.rb @@ -1,4 +1,3 @@ -# coding: utf-8 require "test_helper" class LanguageTest < ActiveSupport::TestCase @@ -7,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