Commit 2ee24bd9 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Update specs to be valid only for tagged runner

parent dd8e9e2d
...@@ -126,6 +126,9 @@ describe "Runners" do ...@@ -126,6 +126,9 @@ describe "Runners" do
expect(page).to have_content 'Can run untagged jobs Yes' expect(page).to have_content 'Can run untagged jobs Yes'
end end
context 'when runner has tags' do
before { runner.update_attribute(:tag_list, ['tag']) }
scenario 'user want to prevent runner from running untagged job' do scenario 'user want to prevent runner from running untagged job' do
visit runners_path(project) visit runners_path(project)
page.within('.activated-specific-runners') do page.within('.activated-specific-runners') do
...@@ -139,4 +142,5 @@ describe "Runners" do ...@@ -139,4 +142,5 @@ describe "Runners" do
expect(runner.reload.run_untagged?).to eq false expect(runner.reload.run_untagged?).to eq false
end end
end end
end
end end
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