]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/language_test.rb
Bump eslint from 9.9.1 to 9.10.0
[rails.git] / test / models / language_test.rb
index f6a6e3234c58e904f21ea7b8d0defbd1a99d78e8..f777d8e1965a53d7348e52bfda21cbb9f349b931 100644 (file)
@@ -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