summaryrefslogtreecommitdiff
path: root/spec/serializers/pipeline_entity_spec.rb
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-05-23 10:24:57 +0200
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-05-23 10:31:21 +0200
commitfd871802b5e7085f98f8d836ecd4b22e8d230f2f (patch)
tree2fcbaa0bf16972192fcf40f9e2ac6d7d5db10245 /spec/serializers/pipeline_entity_spec.rb
parentad47f2094bf61867d2b5e4c24540c7c5b8a6358d (diff)
downloadgitlab-ce-zj-pipeline-show-realtime-job-list.tar.gz
Update entities for real time pipeline job listzj-pipeline-show-realtime-job-list
Now exposed on the pipeline: - queued_duration On the BuildEntity: - tags - timestamps regarding starting, finishing, and queueing - Artifacts
Diffstat (limited to 'spec/serializers/pipeline_entity_spec.rb')
-rw-r--r--spec/serializers/pipeline_entity_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/serializers/pipeline_entity_spec.rb b/spec/serializers/pipeline_entity_spec.rb
index d2482ac434b..8af74387069 100644
--- a/spec/serializers/pipeline_entity_spec.rb
+++ b/spec/serializers/pipeline_entity_spec.rb
@@ -1,7 +1,7 @@
require 'spec_helper'
describe PipelineEntity do
- let(:user) { create(:user) }
+ set(:user) { create(:user) }
let(:request) { double('request') }
before do
@@ -20,7 +20,7 @@ describe PipelineEntity do
it 'contains required fields' do
expect(subject).to include :id, :user, :path, :coverage
- expect(subject).to include :ref, :commit
+ expect(subject).to include :ref, :commit, :queued_duration
expect(subject).to include :updated_at, :created_at
end