Commit 384da927 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Fix spec

parent efaa3669
...@@ -32,10 +32,10 @@ describe Gitlab::Ci::Status::Pipeline::Factory do ...@@ -32,10 +32,10 @@ describe Gitlab::Ci::Status::Pipeline::Factory do
it 'does not match extended statuses' do it 'does not match extended statuses' do
expect(factory.extended_statuses).to be_empty expect(factory.extended_statuses).to be_empty
end end
end
it "fabricates a core status #{simple_status}" do it "fabricates a core status #{simple_status}" do
expect(status).to be_a expected_status expect(status).to be_a expected_status
end
end end
it 'extends core status with common pipeline methods' do it 'extends core status with common pipeline methods' do
......
...@@ -29,7 +29,7 @@ describe Ci::RunScheduledBuildService do ...@@ -29,7 +29,7 @@ describe Ci::RunScheduledBuildService do
context 'when scheduled_at is not expired' do context 'when scheduled_at is not expired' do
let(:build) { create(:ci_build, :scheduled, user: user, project: project, pipeline: pipeline) } let(:build) { create(:ci_build, :scheduled, user: user, project: project, pipeline: pipeline) }
it 'can run the build' do it 'can not run the build' do
expect { subject }.to raise_error(StateMachines::InvalidTransition) expect { subject }.to raise_error(StateMachines::InvalidTransition)
expect(build).to be_scheduled expect(build).to be_scheduled
......
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