From 7a8031b578582e07dc11fa1f5c8977f049a313da Mon Sep 17 00:00:00 2001
From: keepcosmos <keepcosmos@gmail.com>
Date: Thu, 3 Dec 2015 14:37:05 +0900
Subject: add test for nested model translation

---
 activemodel/test/cases/translation_test.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/activemodel/test/cases/translation_test.rb b/activemodel/test/cases/translation_test.rb
index cedc812ec7..2c89388f14 100644
--- a/activemodel/test/cases/translation_test.rb
+++ b/activemodel/test/cases/translation_test.rb
@@ -88,6 +88,11 @@ class ActiveModelI18nTests < ActiveModel::TestCase
     assert_equal 'child model', Child.model_name.human
   end
 
+  def test_translated_model_with_namespace
+    I18n.backend.store_translations 'en', activemodel: { models: { 'person/gender': 'gender model' } }
+    assert_equal 'gender model', Person::Gender.model_name.human
+  end
+
   def test_translated_model_names_with_ancestors_fallback
     I18n.backend.store_translations 'en', activemodel: { models: { person: 'person model' } }
     assert_equal 'person model', Child.model_name.human
-- 
cgit v1.2.3