Commit 17518f8a authored by Imre Farkas's avatar Imre Farkas Committed by Rémy Coutable

Move EE specific lines in API::Services spec

parent 9124676b
# frozen_string_literal: true
require "spec_helper"
describe API::Services do
set(:user) { create(:user) }
set(:project) do
create(:project, creator_id: user.id, namespace: user.namespace)
end
describe 'Slack application Service' do
before do
project.create_gitlab_slack_application_service
stub_application_setting(
slack_app_verification_token: 'token'
)
end
it 'returns status 200' do
post api('/slack/trigger'), params: { token: 'token', text: 'help' }
expect(response).to have_gitlab_http_status(200)
expect(json_response['response_type']).to eq("ephemeral")
end
end
end
......@@ -198,21 +198,4 @@ describe API::Services do
expect(json_response['properties']['username']).to eq('new_username')
end
end
describe 'Slack application Service' do
before do
project.create_gitlab_slack_application_service
stub_application_setting(
slack_app_verification_token: 'token'
)
end
it 'returns status 200' do
post api('/slack/trigger'), params: { token: 'token', text: 'help' }
expect(response).to have_gitlab_http_status(200)
expect(json_response['response_type']).to eq("ephemeral")
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment