Sha256: 7d001d52e83f081037820420d27b0bd3704b49234d151594a24ec7b75268d761
Contents?: true
Size: 543 Bytes
Versions: 8
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true require 'test_helper' module Shipit class DeploySerializerTest < ActiveSupport::TestCase test 'deploy commits includes author object' do deploy = shipit_deploys(:shipit) first_commit_author = deploy.commits.first.author serializer = ActiveModel::Serializer.serializer_for(deploy) assert_equal DeploySerializer, serializer serialized = serializer.new(deploy).to_json assert_json_document(serialized, "commits.0.author.name", first_commit_author.name) end end end
Version data entries
8 entries across 8 versions & 1 rubygems