Sha256: ac09c14c1cc46d63408642638af15485704af79d9ebdd6cc36d9ccca8648b017

Contents?: true

Size: 716 Bytes

Versions: 6

Compression:

Stored size: 716 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

6 entries across 6 versions & 1 rubygems

Version Path
soaspec-0.1.6 lib/soaspec/test_server/invoices.rb
soaspec-0.1.1 lib/soaspec/test_server/invoices.rb
soaspec-0.0.88 lib/soaspec/test_server/invoices.rb
soaspec-0.0.85 lib/soaspec/test_server/invoices.rb
soaspec-0.0.83 lib/soaspec/test_server/invoices.rb
soaspec-0.0.82 lib/soaspec/test_server/invoices.rb