提交 d9000184 编写于 作者: L Lin Jen-Shin
上级 b4a7e7cf
......@@ -426,6 +426,7 @@ describe Ci::Pipeline, models: true do
it 'returns the latest status for the same ref and different sha' do
expect(latest_status).to eq(described_class.latest.status)
expect(latest_status).to eq('failed')
end
end
......@@ -434,6 +435,7 @@ describe Ci::Pipeline, models: true do
it 'returns the latest status for ref and different sha' do
expect(latest_status).to eq(described_class.latest_status('ref'))
expect(latest_status).to eq('failed')
end
end
end
......
......@@ -225,6 +225,7 @@ eos
it 'gives compound status from latest pipelines' do
expect(commit.status).to eq(Ci::Pipeline.latest_status)
expect(commit.status).to eq('pending')
end
end
......@@ -252,6 +253,7 @@ eos
it 'gives compound status from latest pipelines if ref is nil' do
expect(commit.status(nil)).to eq(Ci::Pipeline.latest_status)
expect(commit.status(nil)).to eq('failed')
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册