Commit 99fe9870 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Check only failed bridge jobs in serialization specs

parent 609328a2
...@@ -10,7 +10,7 @@ describe PipelineSerializer do ...@@ -10,7 +10,7 @@ describe PipelineSerializer do
subject { serializer.represent(pipeline, details: true) } subject { serializer.represent(pipeline, details: true) }
context 'when pipeline contains bridge jobs' do context 'when pipeline contains failed bridge jobs' do
let(:pipeline) do let(:pipeline) do
create(:ci_empty_pipeline, create(:ci_empty_pipeline,
project: project, project: project,
...@@ -19,7 +19,7 @@ describe PipelineSerializer do ...@@ -19,7 +19,7 @@ describe PipelineSerializer do
end end
before do before do
create(:ci_bridge, pipeline: pipeline) create(:ci_bridge, pipeline: pipeline, status: :failed)
end end
it 'serializes bridge job correctly' do it 'serializes bridge job correctly' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment