diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-22 03:08:47 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-22 03:08:47 +0300 |
commit | 66ce6a78f6203652c34bd0532b63c394d5394cc4 (patch) | |
tree | 67408e003b1c4136bb8e35c1e9ac049563c1f1d5 /spec/features/projects/services/user_activates_youtrack_spec.rb | |
parent | 1c23b3f1315ba1da3c3765acd34feb5c05bc7704 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/projects/services/user_activates_youtrack_spec.rb')
-rw-r--r-- | spec/features/projects/services/user_activates_youtrack_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/projects/services/user_activates_youtrack_spec.rb b/spec/features/projects/services/user_activates_youtrack_spec.rb index 8fdeddfdfb4..2f6aad1d736 100644 --- a/spec/features/projects/services/user_activates_youtrack_spec.rb +++ b/spec/features/projects/services/user_activates_youtrack_spec.rb @@ -8,8 +8,8 @@ describe 'User activates issue tracker', :js do let(:url) { 'http://tracker.example.com' } - def fill_form(active = true) - check 'Active' if active + def fill_form(disabled: false) + uncheck 'Active' if disabled fill_in 'service_project_url', with: url fill_in 'service_issues_url', with: "#{url}/:id" @@ -67,10 +67,10 @@ describe 'User activates issue tracker', :js do end end - describe 'user sets the service but keeps it disabled' do + describe 'user disables the service' do before do click_link(tracker) - fill_form(false) + fill_form(disabled: true) click_button('Save changes') end |