diff options
Diffstat (limited to 'spec/features/projects/integrations')
4 files changed, 3 insertions, 24 deletions
diff --git a/spec/features/projects/integrations/user_activates_jira_spec.rb b/spec/features/projects/integrations/user_activates_jira_spec.rb index 03d5e68d2aa..0bd5020e9bf 100644 --- a/spec/features/projects/integrations/user_activates_jira_spec.rb +++ b/spec/features/projects/integrations/user_activates_jira_spec.rb @@ -47,7 +47,7 @@ RSpec.describe 'User activates Jira', :js, feature_category: :integrations do end it 'activates the Jira integration' do - stub_request(:get, test_url).with(basic_auth: %w(username password)) + stub_request(:get, test_url).with(basic_auth: %w[username password]) .to_raise(JIRA::HTTPError.new(double(message: 'message', code: '200'))) visit_project_integration('Jira') diff --git a/spec/features/projects/integrations/user_activates_mattermost_slash_command_spec.rb b/spec/features/projects/integrations/user_activates_mattermost_slash_command_spec.rb index aea76944c7f..e490e32149e 100644 --- a/spec/features/projects/integrations/user_activates_mattermost_slash_command_spec.rb +++ b/spec/features/projects/integrations/user_activates_mattermost_slash_command_spec.rb @@ -139,7 +139,7 @@ RSpec.describe 'Set up Mattermost slash commands', :js, feature_category: :integ it 'shows the correct trigger url' do value = find_field('request_url').value - expect(value).to match("api/v4/projects/#{project.id}/services/mattermost_slash_commands/trigger") + expect(value).to match("api/v4/projects/#{project.id}/integrations/mattermost_slash_commands/trigger") end it 'shows a token placeholder' do diff --git a/spec/features/projects/integrations/user_activates_prometheus_spec.rb b/spec/features/projects/integrations/user_activates_prometheus_spec.rb deleted file mode 100644 index db71256b294..00000000000 --- a/spec/features/projects/integrations/user_activates_prometheus_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe 'User activates Prometheus', feature_category: :integrations do - include_context 'project integration activation' - - before do - stub_feature_flags(remove_monitor_metrics: false) - stub_request(:get, /.*prometheus.example.com.*/) - end - - it 'saves and activates integration', :js do - visit_project_integration('Prometheus') - check('Active') - - click_button('Save changes') - - expect(page).to have_content('Prometheus settings saved and active.') - end -end diff --git a/spec/features/projects/integrations/user_activates_slack_slash_command_spec.rb b/spec/features/projects/integrations/user_activates_slack_slash_command_spec.rb index 38491501c65..b4d755291da 100644 --- a/spec/features/projects/integrations/user_activates_slack_slash_command_spec.rb +++ b/spec/features/projects/integrations/user_activates_slack_slash_command_spec.rb @@ -46,7 +46,7 @@ RSpec.describe 'Slack slash commands', :js, feature_category: :integrations do it 'shows the correct trigger url' do value = find_field('url').value - expect(value).to match("api/v4/projects/#{project.id}/services/slack_slash_commands/trigger") + expect(value).to match("api/v4/projects/#{project.id}/integrations/slack_slash_commands/trigger") end it 'shows help content' do |