Sha256: 8ed795f7b20db0e535a6bd59579621531037d7402f17be5911861668b8877dcf
Contents?: true
Size: 593 Bytes
Versions: 5
Compression:
Stored size: 593 Bytes
Contents
require 'abstract_unit' 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
Version data entries
5 entries across 5 versions & 3 rubygems