diff options
author | José Valim <jose.valim@gmail.com> | 2012-03-23 05:57:35 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-03-23 05:57:35 -0700 |
commit | 35e8de63446562b2e50784e99626a602c65f90ad (patch) | |
tree | f96547d6c669b1b7adc2fe98f4166c44fdf1d6c0 /activemodel/test | |
parent | d1887d384a4038d67bcad50a46a6dc67abfebe04 (diff) | |
parent | bf8d7574bfb80b44ba353bf055122efbaa3d57da (diff) | |
download | rails-35e8de63446562b2e50784e99626a602c65f90ad.tar.gz rails-35e8de63446562b2e50784e99626a602c65f90ad.tar.bz2 rails-35e8de63446562b2e50784e99626a602c65f90ad.zip |
Merge pull request #5374 from nertzy/remove_deprecated_partial_path_from_active_model_naming
Remove ActiveModel::Naming#partial_path
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/naming_test.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/activemodel/test/cases/naming_test.rb b/activemodel/test/cases/naming_test.rb index 1e14d83bcb..49d8706ac2 100644 --- a/activemodel/test/cases/naming_test.rb +++ b/activemodel/test/cases/naming_test.rb @@ -25,12 +25,6 @@ class NamingTest < ActiveModel::TestCase assert_equal 'post/track_backs', @model_name.collection end - def test_partial_path - assert_deprecated(/#partial_path.*#to_partial_path/) do - assert_equal 'post/track_backs/track_back', @model_name.partial_path - end - end - def test_human assert_equal 'Track back', @model_name.human end @@ -61,12 +55,6 @@ class NamingWithNamespacedModelInIsolatedNamespaceTest < ActiveModel::TestCase assert_equal 'blog/posts', @model_name.collection end - def test_partial_path - assert_deprecated(/#partial_path.*#to_partial_path/) do - assert_equal 'blog/posts/post', @model_name.partial_path - end - end - def test_human assert_equal 'Post', @model_name.human end @@ -105,12 +93,6 @@ class NamingWithNamespacedModelInSharedNamespaceTest < ActiveModel::TestCase assert_equal 'blog/posts', @model_name.collection end - def test_partial_path - assert_deprecated(/#partial_path.*#to_partial_path/) do - assert_equal 'blog/posts/post', @model_name.partial_path - end - end - def test_human assert_equal 'Post', @model_name.human end @@ -149,12 +131,6 @@ class NamingWithSuppliedModelNameTest < ActiveModel::TestCase assert_equal 'articles', @model_name.collection end - def test_partial_path - assert_deprecated(/#partial_path.*#to_partial_path/) do - assert_equal 'articles/article', @model_name.partial_path - end - end - def test_human assert_equal 'Article', @model_name.human end |