Methods
S
T
Instance Public methods
setup()
# File activemodel/test/cases/naming_test.rb, line 132
def setup
  @model_name = ActiveModel::Name.new(Blog::Post, nil, 'Article')
end
test_collection()
# File activemodel/test/cases/naming_test.rb, line 148
def test_collection
  assert_equal 'articles', @model_name.collection
end
test_element()
# File activemodel/test/cases/naming_test.rb, line 144
def test_element
  assert_equal 'article', @model_name.element
end
test_human()
# File activemodel/test/cases/naming_test.rb, line 158
def test_human
  assert_equal 'Article', @model_name.human
end
test_i18n_key()
# File activemodel/test/cases/naming_test.rb, line 170
def test_i18n_key
  assert_equal :"article", @model_name.i18n_key
end
test_param_key()
# File activemodel/test/cases/naming_test.rb, line 166
def test_param_key
  assert_equal 'article', @model_name.param_key
end
test_partial_path()
# File activemodel/test/cases/naming_test.rb, line 152
def test_partial_path
  assert_deprecated(/#partial_path.*#to_partial_path/) do
    assert_equal 'articles/article', @model_name.partial_path
  end
end
test_plural()
# File activemodel/test/cases/naming_test.rb, line 140
def test_plural
  assert_equal 'articles', @model_name.plural
end
test_route_key()
# File activemodel/test/cases/naming_test.rb, line 162
def test_route_key
  assert_equal 'articles', @model_name.route_key
end
test_singular()
# File activemodel/test/cases/naming_test.rb, line 136
def test_singular
  assert_equal 'article', @model_name.singular
end