module ActiveModel::Serializer::Lint::Tests
def test_id
id returns a unique identifier for the object.
Fails otherwise.
arguments.
Passes if the object responds to id and if it takes no
def test_id assert_respond_to resource, :id assert_equal 0, resource.method(:id).arity end