Commit f0878ee8 authored by James Lopez's avatar James Lopez

Fix spec failure

parent 266db39e
# frozen_string_literal: true
class ScimOauthAccessTokenEntity < Grape::Entity
include ::API::Helpers::RelatedResourcesHelpers
SCIM_PATH = '/api/scim/v2/groups'
expose :scim_api_url do |scim|
Gitlab::Routing.url_helpers.group_scim_oauth_url(scim.group)
expose_url("#{SCIM_PATH}/#{scim.group.full_path}")
end
expose :token, as: :scim_token
......
......@@ -77,7 +77,7 @@ describe Groups::ScimOauthController do
end
it 'shows the url' do
expect(json_response['scim_api_url']).to eq("http://localhost/groups/#{group.full_path}/-/scim_oauth")
expect(json_response['scim_api_url']).to eq("http://localhost/api/scim/v2/groups/#{group.full_path}")
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