module ActiveModel::Serializer::Lint::Tests

def test_id

It is not required unless caching is enabled.
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