diff options
author | Krasimir Angelov <kangelov@gitlab.com> | 2019-08-14 14:17:13 +0300 |
---|---|---|
committer | Krasimir Angelov <kangelov@gitlab.com> | 2019-08-15 10:53:48 +0300 |
commit | 18159235a3150dbd3c404e1d7724d5e653bb21a5 (patch) | |
tree | 3d1e2175950ed4a9964ace94fdfb72f8ab98ce61 /spec/serializers | |
parent | 94cf543fe3909a0a12771765a85c3c596f318046 (diff) | |
download | gitlab-ce-18159235a3150dbd3c404e1d7724d5e653bb21a5.tar.gz |
Add finished_at to the internal API Deployment entity56130-deployment-date
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/56130.
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/deployment_entity_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/serializers/deployment_entity_spec.rb b/spec/serializers/deployment_entity_spec.rb index 76ad2aee5c5..c0ea2b3c389 100644 --- a/spec/serializers/deployment_entity_spec.rb +++ b/spec/serializers/deployment_entity_spec.rb @@ -32,6 +32,10 @@ describe DeploymentEntity do expect(subject).to include(:created_at) end + it 'exposes finished_at' do + expect(subject).to include(:finished_at) + end + context 'when the pipeline has another manual action' do let(:other_build) { create(:ci_build, :manual, name: 'another deploy', pipeline: pipeline) } let!(:other_deployment) { create(:deployment, deployable: other_build) } |