Sha256: a789990f2a9a894090500f9000df2d3bb94c5072019968e86ad35899a12fe583

Contents?: true

Size: 652 Bytes

Versions: 6

Compression:

Stored size: 652 Bytes

Contents

require 'test_helper'

module ActiveModel
  class Serializer
    class LintTest < Minitest::Test
      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 self.model_name
          @_model_name ||= ActiveModel::Name.new(self)
        end
      end

      def setup
        @resource = CompliantResource.new
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
active_model_serializers-0.10.0.rc3 test/lint_test.rb
cheap_ams-0.10.11 test/lint_test.rb
cheap_ams-0.10.10 test/lint_test.rb
cheap_ams-0.10.8 test/lint_test.rb
cheap_ams-0.10.7 test/lint_test.rb
cheap_ams-0.10.6 test/lint_test.rb