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

Fix spec

parent efaa3669
......@@ -32,11 +32,11 @@ describe Gitlab::Ci::Status::Pipeline::Factory do
it 'does not match extended statuses' do
expect(factory.extended_statuses).to be_empty
end
end
it "fabricates a core status #{simple_status}" do
expect(status).to be_a expected_status
end
end
it 'extends core status with common pipeline methods' do
expect(status).to have_details
......
......@@ -29,7 +29,7 @@ describe Ci::RunScheduledBuildService do
context 'when scheduled_at is not expired' do
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(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