diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-26 18:09:02 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-26 18:09:02 +0000 |
commit | dd9af4e967d19806838befb3a99a0083123a9a6e (patch) | |
tree | f086c5dcaec2a58166edf7704bcebf3c1ac2ed80 /spec/serializers/ci | |
parent | 8cd1a72e8f35bf8968ff1cd9b6274b10bfc29346 (diff) | |
download | gitlab-ce-dd9af4e967d19806838befb3a99a0083123a9a6e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/ci')
-rw-r--r-- | spec/serializers/ci/job_entity_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/serializers/ci/job_entity_spec.rb b/spec/serializers/ci/job_entity_spec.rb index 625beeb239c..05b9e38444c 100644 --- a/spec/serializers/ci/job_entity_spec.rb +++ b/spec/serializers/ci/job_entity_spec.rb @@ -4,7 +4,7 @@ require 'spec_helper' RSpec.describe Ci::JobEntity do let(:user) { create(:user) } - let(:job) { create(:ci_build) } + let(:job) { create(:ci_build, :running) } let(:project) { job.project } let(:request) { double('request') } @@ -21,6 +21,11 @@ RSpec.describe Ci::JobEntity do subject { entity.as_json } + it 'contains started' do + expect(subject).to include(:started) + expect(subject[:started]).to eq(true) + end + it 'contains complete to indicate if a pipeline is completed' do expect(subject).to include(:complete) end |