Sha256: 44f59375679b3b149904f9e28ad4f050f44c9b07a148a6b679049f59095c43fd
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 Bytes
Contents
require 'faraday' module RailsSso class TokenMock attr_reader :connection delegate :get, :post, :put, :patch, :delete, to: :connection 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 def token RailsSso.config.access_token_mock end def refresh_token nil end end end
Version data entries
5 entries across 5 versions & 1 rubygems