Sha256: 347da07704e4b0a0c48742d66550bcc1b63f30cfb400788268d1816875e1e492

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

module Soaspec
  module TestServer
    # Used to simulate requests requiring oauth authentication
    class Invoices
      @user_used = nil

      class << self
        attr_accessor :user_used

        def oauth_headers
          {
            'Content-Type' => 'application/json;charset=UTF-8'
          }
        end

        def oauth_body
          {
            access_token: 'TEST_TOKENiIsImtpZCI6IlRFU1QifQ.AAAABBBBRfaWQiOiJhYWQ5MjY3SIMULATE_LARGE_TOKEN3MmM5OGQ5NGE2YTU5YSIsImV4cCI6MTUyNzU3MTY4Mywic2NvcGUiOltdfQ.3OmCdW7fLZMUST_BE_ABLE_TO_HANDLEgAGaJB0lFYyhaw',
            token_type: 'Bearer',
            expires_in: '86399'
          }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soaspec-0.2.10 lib/soaspec/test_server/invoices.rb
soaspec-0.2.9 lib/soaspec/test_server/invoices.rb