diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-04-05 21:21:31 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-04-05 21:21:31 +0300 |
commit | 6bf1780aa81a45afdf9ddbfc32c2b9f1e0ba9285 (patch) | |
tree | 0fe97ea111c427aa1ad7fed24060a2d916249925 /spec/features/projects/settings/pipelines_settings_spec.rb | |
parent | 016e1a2906e27f519a3c67d30806a2dc5cb110b5 (diff) |
Add tests for relations and scopes, and setting
Diffstat (limited to 'spec/features/projects/settings/pipelines_settings_spec.rb')
-rw-r--r-- | spec/features/projects/settings/pipelines_settings_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/projects/settings/pipelines_settings_spec.rb b/spec/features/projects/settings/pipelines_settings_spec.rb index 76cb240ea98..035c57eaa47 100644 --- a/spec/features/projects/settings/pipelines_settings_spec.rb +++ b/spec/features/projects/settings/pipelines_settings_spec.rb @@ -32,5 +32,16 @@ feature "Pipelines settings", feature: true do expect(page).to have_button('Save changes', disabled: false) expect(page).to have_field('Test coverage parsing', with: 'coverage_regex') end + + scenario 'updates auto_cancel_pending_pipelines' do + page.check('Auto-cancel redundant, pending pipelines') + click_on 'Save changes' + + expect(page.status_code).to eq(200) + expect(page).to have_button('Save changes', disabled: false) + + checkbox = find_field('project_auto_cancel_pending_pipelines') + expect(checkbox).to be_checked + end end end |