Commit 7306c8ce authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Refactor pipeline specs and remove raise_error warning

parent d475eb7d655a
......@@ -163,5 +163,5 @@
->(pipeline) { pipeline.variables.create!(key: 'VAR', value: '123') }
end
it 'raises exception' do
it 'wastes pipeline iid' do
expect { step.perform! }.to raise_error(ActiveRecord::RecordNotSaved)
......@@ -167,3 +167,2 @@
expect { step.perform! }.to raise_error(ActiveRecord::RecordNotSaved)
end
......@@ -169,4 +168,5 @@
it 'wastes pipeline iid' do
expect { step.perform! }.to raise_error
last_iid = InternalId.ci_pipelines
.where(project_id: project.id)
.last.last_value
......@@ -172,5 +172,5 @@
expect(InternalId.ci_pipelines.where(project_id: project.id).last.last_value).to be > 0
expect(last_iid).to be > 0
end
end
end
......
Supports Markdown
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