Sha256: 3ab668746fbb897f05b970323f54eccb7c2d551c456dbc742e6cc52efebccca3
Contents?: true
Size: 869 Bytes
Versions: 2
Compression:
Stored size: 869 Bytes
Contents
# frozen_string_literal: true 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(_, _ = {}) 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
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
active_model_serializers_custom-0.10.90 | test/lint_test.rb |
active_model_serializers-0.10.9 | test/lint_test.rb |