diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /spec/controllers/groups | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) | |
download | gitlab-ce-85dc423f7090da0a52c73eb66faf22ddb20efff9.tar.gz |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r-- | spec/controllers/groups/settings/integrations_controller_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/controllers/groups/settings/integrations_controller_spec.rb b/spec/controllers/groups/settings/integrations_controller_spec.rb index d079f3f077e..cdcdfde175f 100644 --- a/spec/controllers/groups/settings/integrations_controller_spec.rb +++ b/spec/controllers/groups/settings/integrations_controller_spec.rb @@ -3,7 +3,6 @@ require 'spec_helper' RSpec.describe Groups::Settings::IntegrationsController do - let_it_be(:project) { create(:project) } let(:user) { create(:user) } let(:group) { create(:group) } @@ -82,10 +81,13 @@ RSpec.describe Groups::Settings::IntegrationsController do end describe '#update' do - let(:integration) { create(:jira_service, project: project) } + include JiraServiceHelper + + let(:integration) { create(:jira_service, project: nil, group_id: group.id) } before do group.add_owner(user) + stub_jira_service_test put :update, params: { group_id: group, id: integration.class.to_param, service: { url: url } } end |