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