module ActiveModel::Serializer::Lint::Tests
def test_model_name
It is used by the serializer to identify the object's type.
model_name returns an ActiveModel::Name instance.
Fails otherwise.
is in an instance of +ActiveModel::Name+.
Passes if the object's class responds to model_name and if it
def test_model_name resource_class = resource.class assert_respond_to resource_class, :model_name assert_instance_of resource_class.model_name, ActiveModel::Name end