Update specs to be valid only for tagged runner

This commit is contained in:
Grzegorz Bizon 2016-05-06 08:41:51 +02:00
parent dd8e9e2d7a
commit 2ee24bd9ec
1 changed files with 14 additions and 10 deletions

View File

@ -126,6 +126,9 @@ describe "Runners" do
expect(page).to have_content 'Can run untagged jobs Yes'
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
visit runners_path(project)
page.within('.activated-specific-runners') do
@ -139,4 +142,5 @@ describe "Runners" do
expect(runner.reload.run_untagged?).to eq false
end
end
end
end