class RailsSso::TokenMock

Attributes

connection[R]

Public Class Methods

new(*) click to toggle source
# File lib/rails_sso/token_mock.rb, line 9
def initialize(*)
  @connection = Faraday.new do |builder|
    builder.adapter :test do |stub|
      stub.delete(RailsSso.config.provider_sign_out_path) { |env| [200, {}, ''] }
    end
  end
end

Public Instance Methods

refresh_token() click to toggle source
# File lib/rails_sso/token_mock.rb, line 21
def refresh_token
  nil
end
token() click to toggle source
# File lib/rails_sso/token_mock.rb, line 17
def token
  RailsSso.config.access_token_mock
end