diff options
Diffstat (limited to 'spec/models/integrations/slack_slash_commands_spec.rb')
-rw-r--r-- | spec/models/integrations/slack_slash_commands_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/integrations/slack_slash_commands_spec.rb b/spec/models/integrations/slack_slash_commands_spec.rb index a9d3c820a3c..ff89d2c6a40 100644 --- a/spec/models/integrations/slack_slash_commands_spec.rb +++ b/spec/models/integrations/slack_slash_commands_spec.rb @@ -18,8 +18,8 @@ RSpec.describe Integrations::SlackSlashCommands do } end - let(:service) do - project.create_slack_slash_commands_service( + let(:integration) do + project.create_slack_slash_commands_integration( properties: { token: 'token' }, active: true ) @@ -30,11 +30,11 @@ RSpec.describe Integrations::SlackSlashCommands do end before do - allow(service).to receive(:authorize_chat_name_url).and_return(authorize_url) + allow(integration).to receive(:authorize_chat_name_url).and_return(authorize_url) end it 'uses slack compatible links' do - response = service.trigger(params) + response = integration.trigger(params) expect(response[:text]).to include("<#{authorize_url}|connect your GitLab account>") end |