Sha256: 244044197df4afdc6790c66b2eb4e241e0f7e0cfec2133d9cd0b5c0f7e6595f7

Contents?: true

Size: 414 Bytes

Versions: 8

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true
require 'test_helper'

module Shipit
  class UserSerializerTest < ActiveSupport::TestCase
    test 'includes anonymous key' do
      user = User.new
      serializer = ActiveModel::Serializer.serializer_for(user)
      assert_equal UserSerializer, serializer
      serialized = serializer.new(user).to_json
      assert_json_document(serialized, "anonymous", false)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 test/unit/user_serializer_test.rb
shipit-engine-0.38.0 test/unit/user_serializer_test.rb
shipit-engine-0.37.0 test/unit/user_serializer_test.rb
shipit-engine-0.36.1 test/unit/user_serializer_test.rb
shipit-engine-0.36.0 test/unit/user_serializer_test.rb
shipit-engine-0.35.1 test/unit/user_serializer_test.rb
shipit-engine-0.35.0 test/unit/user_serializer_test.rb
shipit-engine-0.34.0 test/unit/user_serializer_test.rb