mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 22:36:50 +00:00
- ActiveModelSerializers::JsonPointer - ActiveModel::Serializer::Adapter::JsonApi::Error - ActiveModel::Serializer::Adapter::JsonApi::Error.attributes - Fix rubocop config
50 lines
847 B
Ruby
50 lines
847 B
Ruby
require 'test_helper'
|
|
|
|
module ActiveModel
|
|
class Serializer
|
|
class LintTest < ActiveSupport::TestCase
|
|
include ActiveModel::Serializer::Lint::Tests
|
|
|
|
class CompliantResource
|
|
def serializable_hash(options = nil)
|
|
end
|
|
|
|
def read_attribute_for_serialization(name)
|
|
end
|
|
|
|
def as_json(options = nil)
|
|
end
|
|
|
|
def to_json(options = nil)
|
|
end
|
|
|
|
def cache_key
|
|
end
|
|
|
|
def id
|
|
end
|
|
|
|
def updated_at
|
|
end
|
|
|
|
def errors
|
|
end
|
|
|
|
def self.human_attribute_name(attr, options = {})
|
|
end
|
|
|
|
def self.lookup_ancestors
|
|
end
|
|
|
|
def self.model_name
|
|
@_model_name ||= ActiveModel::Name.new(self)
|
|
end
|
|
end
|
|
|
|
def setup
|
|
@resource = CompliantResource.new
|
|
end
|
|
end
|
|
end
|
|
end
|