Commit c0e72610 authored by Tomasz Maczukin's avatar Tomasz Maczukin

Use 'set' instead of 'let!' when it's possible

parent 7b643c02
...@@ -355,7 +355,7 @@ describe API::Runners do ...@@ -355,7 +355,7 @@ describe API::Runners do
end end
describe 'GET /runners/:id/jobs' do describe 'GET /runners/:id/jobs' do
let!(:job_1) { create(:ci_build) } set(:job_1) { create(:ci_build) }
let!(:job_2) { create(:ci_build, :running, runner: shared_runner, project: project) } let!(:job_2) { create(:ci_build, :running, runner: shared_runner, project: project) }
let!(:job_3) { create(:ci_build, :failed, runner: shared_runner, project: project) } let!(:job_3) { create(:ci_build, :failed, runner: shared_runner, project: project) }
let!(:job_4) { create(:ci_build, :running, runner: specific_runner, project: project) } let!(:job_4) { create(:ci_build, :running, runner: specific_runner, project: project) }
......
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