Sha256: 26679d7f851aa6e0adf8269e80b5611d864e6a78592d7282434bf20493d40bcc

Contents?: true

Size: 637 Bytes

Versions: 5

Compression:

Stored size: 637 Bytes

Contents

require 'test_helper'

module Workarea
  module Klarna
    class Gateway
      class CreateSessionRequestTest < TestCase
        setup :create_supporting_data_for_klarna

        def test_details
          request = CreateSessionRequest.new(@order)

          assert_equal('post', request.method)
          assert_equal('payments/v1/sessions', request.path)
          assert(request.summary.present?)
        end

        def test_body
          request = CreateSessionRequest.new(@order)

          assert_nil(request.body[:shipping_address])
          assert_nil(request.body[:billing_address])
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-klarna-1.1.0 test/lib/workarea/klarna/gateway/create_session_request_test.rb
workarea-klarna-1.1.0.beta1 test/lib/workarea/klarna/gateway/create_session_request_test.rb
workarea-klarna-1.0.0 test/lib/workarea/klarna/gateway/create_session_request_test.rb
workarea-klarna-1.0.0.beta2 test/lib/workarea/klarna/gateway/create_session_request_test.rb
workarea-klarna-1.0.0.beta1 test/lib/workarea/klarna/gateway/create_session_request_test.rb