diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2017-10-05 10:55:01 +0300 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-04-23 10:21:48 +0300 |
commit | 7584d03ab12133ab6a64b473ece56b72612abad8 (patch) | |
tree | ccacb855dab0ea6490294ef08530dac8993de822 /spec/features/runners_spec.rb | |
parent | d8675bd45f6f9b5af701343fbff7650f49559048 (diff) |
allow disabling/enabling group runners per project
Diffstat (limited to 'spec/features/runners_spec.rb')
-rw-r--r-- | spec/features/runners_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb index f34aeb5bd5e..dcd06a4015d 100644 --- a/spec/features/runners_spec.rb +++ b/spec/features/runners_spec.rb @@ -219,6 +219,20 @@ feature 'Runners' do expect(page).to have_content 'Available group Runners : 1' expect(page).to have_content 'group-runner' end + + scenario 'group runners may be disabled for a project' do + visit runners_path(project) + + click_on 'Disable group Runners' + + expect(page).to have_content 'Enable group Runners' + expect(project.reload.group_runners_enabled).to be false + + click_on 'Enable group Runners' + + expect(page).to have_content 'Disable group Runners' + expect(project.reload.group_runners_enabled).to be true + end end end end |