Commit 85949ac1 authored by Dylan Griffith's avatar Dylan Griffith

Fix spec/features/runners_spec.rb

parent da75618b
...@@ -29,7 +29,7 @@ feature 'Runners' do ...@@ -29,7 +29,7 @@ feature 'Runners' do
end end
context 'when a project_type runner is activated on the project' do context 'when a project_type runner is activated on the project' do
given(:specific_runner) { create(:ci_runner, :project, projects: [specific_runner]) } given!(:specific_runner) { create(:ci_runner, :project, projects: [project]) }
scenario 'user sees the specific runner' do scenario 'user sees the specific runner' do
visit project_runners_path(project) visit project_runners_path(project)
...@@ -122,7 +122,7 @@ feature 'Runners' do ...@@ -122,7 +122,7 @@ feature 'Runners' do
context 'when a specific runner exists in another project' do context 'when a specific runner exists in another project' do
given(:another_project) { create(:project) } given(:another_project) { create(:project) }
given(:specific_runner) { create(:ci_runner, :project, projects: [another_project]) } given!(:specific_runner) { create(:ci_runner, :project, projects: [another_project]) }
background do background do
another_project.add_master(user) another_project.add_master(user)
......
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