Sha256: 10231a150ca306bbeaf3614106af09be370701c4ac63b334c0bbb7168fd5b5fb
Contents?: true
Size: 723 Bytes
Versions: 5
Compression:
Stored size: 723 Bytes
Contents
require 'test_helper' module Workarea module Klarna class Gateway class UpdateSessionRequestTest < TestCase setup :create_supporting_data_for_klarna def test_details session = create_klarna_session(id: @order.id) request = UpdateSessionRequest.new(@order) assert_equal('post', request.method) assert_equal("payments/v1/sessions/#{session.session_id}", request.path) assert(request.summary.present?) end def test_body request = UpdateSessionRequest.new(@order, '123') 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