Sha256: 60ae980d78309708606afedd57d30f1bc5c0458915048fd0bc4e3dfca71cd93d
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true require 'test_helper' module ActiveModelSerializers module Adapter class NullTest < ActiveSupport::TestCase def setup profile = Profile.new(name: 'Name 1', description: 'Description 1', comments: 'Comments 1') serializer = ProfileSerializer.new(profile) @adapter = Null.new(serializer) end def test_serializable_hash assert_equal({}, @adapter.serializable_hash) end def test_it_returns_empty_json assert_equal('{}', @adapter.to_json) end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
active_model_serializers_custom-0.10.90 | test/adapter/null_test.rb |
active_model_serializers-0.10.9 | test/adapter/null_test.rb |