Sha256: 09c5e349116a5e1f700edf7f6871a94f34be5f0a97d33021aca17e3f84bccdd5

Contents?: true

Size: 659 Bytes

Versions: 6

Compression:

Stored size: 659 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 & 1 rubygems

Version Path
cheap_ams-0.10.5 test/lint_test.rb
cheap_ams-0.10.4 test/lint_test.rb
cheap_ams-0.10.3 test/lint_test.rb
cheap_ams-0.10.2 test/lint_test.rb
cheap_ams-0.10.1 test/lint_test.rb
cheap_ams-0.10.0.rc2 test/lint_test.rb