diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-05-23 10:24:57 +0200 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-05-23 10:31:21 +0200 |
commit | fd871802b5e7085f98f8d836ecd4b22e8d230f2f (patch) | |
tree | 2fcbaa0bf16972192fcf40f9e2ac6d7d5db10245 /spec/serializers/pipeline_entity_spec.rb | |
parent | ad47f2094bf61867d2b5e4c24540c7c5b8a6358d (diff) | |
download | gitlab-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.rb | 4 |
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 |