GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

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

Update specs to be valid only for tagged runner

parent dd8e9e2d
......@@ -126,17 +126,21 @@ describe "Runners" do
expect(page).to have_content 'Can run untagged jobs Yes'
end
scenario 'user want to prevent runner from running untagged job' do
visit runners_path(project)
page.within('.activated-specific-runners') do
first('small > a').click
end
context 'when runner has tags' do
before { runner.update_attribute(:tag_list, ['tag']) }
uncheck 'runner_run_untagged'
click_button 'Save changes'
scenario 'user want to prevent runner from running untagged job' do
visit runners_path(project)
page.within('.activated-specific-runners') do
first('small > a').click
end
expect(page).to have_content 'Can run untagged jobs No'
expect(runner.reload.run_untagged?).to eq false
uncheck 'runner_run_untagged'
click_button 'Save changes'
expect(page).to have_content 'Can run untagged jobs No'
expect(runner.reload.run_untagged?).to eq false
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