Skip to content
代码片段 群组 项目
提交 019d93f8 编辑于 作者: drew stachon's avatar drew stachon
浏览文件

Merge branch 'issue_406761-has_status_spec' into 'master'

No related branches found
No related tags found
无相关合并请求
......@@ -393,24 +393,26 @@
subject { object.blocked? }
%w[ci_pipeline ci_stage ci_build generic_commit_status].each do |type|
let(:object) { build(type, status: status) }
context "when #{type}" do
let(:object) { build(type, status: status) }
context 'when status is scheduled' do
let(:status) { :scheduled }
context 'when status is scheduled' do
let(:status) { :scheduled }
it { is_expected.to be_truthy }
end
it { is_expected.to be_truthy }
end
context 'when status is manual' do
let(:status) { :manual }
context 'when status is manual' do
let(:status) { :manual }
it { is_expected.to be_truthy }
end
it { is_expected.to be_truthy }
end
context 'when status is created' do
let(:status) { :created }
context 'when status is created' do
let(:status) { :created }
it { is_expected.to be_falsy }
it { is_expected.to be_falsy }
end
end
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册