Methods
S
T
Instance Public methods
setup()
# File activemodel/test/cases/naming_test.rb, line 46
def setup
  @model_name = ActiveModel::Name.new(Blog::Post, Blog)
end
test_collection()
# File activemodel/test/cases/naming_test.rb, line 62
def test_collection
  assert_equal 'blog/posts', @model_name.collection
end
test_element()
# File activemodel/test/cases/naming_test.rb, line 58
def test_element
  assert_equal 'post', @model_name.element
end
test_human()
# File activemodel/test/cases/naming_test.rb, line 66
def test_human
  assert_equal 'Post', @model_name.human
end
test_i18n_key()
# File activemodel/test/cases/naming_test.rb, line 78
def test_i18n_key
  assert_equal :"blog/post", @model_name.i18n_key
end
test_param_key()
# File activemodel/test/cases/naming_test.rb, line 74
def test_param_key
  assert_equal 'post', @model_name.param_key
end
test_plural()
# File activemodel/test/cases/naming_test.rb, line 54
def test_plural
  assert_equal 'blog_posts', @model_name.plural
end
test_route_key()
# File activemodel/test/cases/naming_test.rb, line 70
def test_route_key
  assert_equal 'posts', @model_name.route_key
end
test_singular()
# File activemodel/test/cases/naming_test.rb, line 50
def test_singular
  assert_equal 'blog_post', @model_name.singular
end