module ActiveModel::Serializer::Lint::Tests

def test_serializable_hash

Typically, it is implemented by including ActiveModel::Serialization.
serializable_hash returns a hash representation of a object's attributes.

Fails otherwise.
zero or one arguments.
Passes if the object responds to serializable_hash and if it takes
def test_serializable_hash
  assert_respond_to resource, :serializable_hash, 'The resource should respond to serializable_hash'
  resource.serializable_hash
  resource.serializable_hash(nil)
end