Commit 5fca26fa authored by James Lopez's avatar James Lopez

Update code based on feedback

parent e58a5e24
# frozen_string_literal: true
require_relative '../concerns/saml_authorization.rb' # frozen_string_literal: true
require_relative '../concerns/saml_authorization.rb'
class Groups::SamlProvidersController < Groups::ApplicationController
include SamlAuthorization
......
class CreateScimOauthAccessTokens < ActiveRecord::Migration[5.0]
DOWNTIME = false
def change
create_table :scim_oauth_access_tokens do |t|
t.timestamps_with_timezone null: false
......
......@@ -39,15 +39,15 @@ describe Groups::ScimOauthController do
context 'with token' do
let!(:scim_token) { create(:scim_oauth_access_token, group: group) }
before do
it 'shows the token' do
subject
end
it 'shows the token' do
expect(json_response['scim_token']).to eq(scim_token.token)
end
it 'shows the url' do
subject
expect(json_response['scim_api_url']).not_to be_empty
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