diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:55:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 09:55:51 +0000 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /spec/features/projects/integrations/user_activates_jira_spec.rb | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) | |
download | gitlab-ce-e8d2c2579383897a1dd7f9debd359abe8ae8373d.tar.gz |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'spec/features/projects/integrations/user_activates_jira_spec.rb')
-rw-r--r-- | spec/features/projects/integrations/user_activates_jira_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/projects/integrations/user_activates_jira_spec.rb b/spec/features/projects/integrations/user_activates_jira_spec.rb index 10f84aae93f..d7679d38cae 100644 --- a/spec/features/projects/integrations/user_activates_jira_spec.rb +++ b/spec/features/projects/integrations/user_activates_jira_spec.rb @@ -65,7 +65,7 @@ RSpec.describe 'User activates Jira', :js do include JiraServiceHelper before do - stub_jira_service_test + stub_jira_integration_test visit_project_integration('Jira') fill_form(disable: true) click_save_integration @@ -105,14 +105,14 @@ RSpec.describe 'User activates Jira', :js do click_save_integration expect(page).to have_content('Jira settings saved and active.') - expect(project.reload.jira_service.data_fields).to have_attributes( + expect(project.reload.jira_integration.data_fields).to have_attributes( jira_issue_transition_automatic: false, jira_issue_transition_id: '1, 2, 3' ) end it 'using automatic transitions' do - create(:jira_service, project: project, jira_issue_transition_automatic: false, jira_issue_transition_id: '1, 2, 3') + create(:jira_integration, project: project, jira_issue_transition_automatic: false, jira_issue_transition_id: '1, 2, 3') visit_project_integration('Jira') expect(page).to have_field('Enable Jira transitions', checked: true) @@ -123,14 +123,14 @@ RSpec.describe 'User activates Jira', :js do click_save_integration expect(page).to have_content('Jira settings saved and active.') - expect(project.reload.jira_service.data_fields).to have_attributes( + expect(project.reload.jira_integration.data_fields).to have_attributes( jira_issue_transition_automatic: true, jira_issue_transition_id: '' ) end it 'disabling issue transitions' do - create(:jira_service, project: project, jira_issue_transition_automatic: true, jira_issue_transition_id: '1, 2, 3') + create(:jira_integration, project: project, jira_issue_transition_automatic: true, jira_issue_transition_id: '1, 2, 3') visit_project_integration('Jira') expect(page).to have_field('Enable Jira transitions', checked: true) @@ -140,7 +140,7 @@ RSpec.describe 'User activates Jira', :js do click_save_integration expect(page).to have_content('Jira settings saved and active.') - expect(project.reload.jira_service.data_fields).to have_attributes( + expect(project.reload.jira_integration.data_fields).to have_attributes( jira_issue_transition_automatic: false, jira_issue_transition_id: '' ) |