aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/module/model_naming_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/core_ext/module/model_naming_test.rb')
-rw-r--r--activesupport/test/core_ext/module/model_naming_test.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/activesupport/test/core_ext/module/model_naming_test.rb b/activesupport/test/core_ext/module/model_naming_test.rb
deleted file mode 100644
index 37119f378a..0000000000
--- a/activesupport/test/core_ext/module/model_naming_test.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-require 'abstract_unit'
-require 'active_support/core_ext/module/model_naming'
-
-class ModelNamingTest < Test::Unit::TestCase
- def setup
- @model_name = ActiveSupport::ModelName.new('Post::TrackBack')
- end
-
- def test_singular
- assert_equal 'post_track_back', @model_name.singular
- end
-
- def test_plural
- assert_equal 'post_track_backs', @model_name.plural
- end
-
- def test_element
- assert_equal 'track_back', @model_name.element
- end
-
- def test_collection
- assert_equal 'post/track_backs', @model_name.collection
- end
-
- def test_partial_path
- assert_equal 'post/track_backs/track_back', @model_name.partial_path
- end
-end