Sha256: c15665ae3f8299c061d2f777fa45fb8f2bf28ad461607eca4775602465b15850

Contents?: true

Size: 374 Bytes

Versions: 4

Compression:

Stored size: 374 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.provider_sign_out_path) { |env| [200, {}, ''] }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_sso-0.7.0 lib/rails_sso/token_mock.rb
rails_sso-0.6.1 lib/rails_sso/token_mock.rb
rails_sso-0.6.0 lib/rails_sso/token_mock.rb
rails_sso-0.5.0 lib/rails_sso/token_mock.rb