Welcome to mirror list, hosted at ThFree Co, Russian Federation.

deployment_extended_spec.rb « entities « api « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 733c47362be102001abd8c54abbee994ebc4db3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe API::Entities::DeploymentExtended do
  describe '#as_json' do
    subject { described_class.new(deployment).as_json }

    let(:deployment) { create(:deployment) }

    it 'includes fields from deployment entity' do
      is_expected.to include(:id, :iid, :ref, :sha, :created_at, :updated_at, :user, :environment, :deployable, :status)
    end
  end
end