Sha256: ac5a639e81ca9e0de102abd52dfeb1878fa94ca8a5520f76e23ec7ae8e3d84d7

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

require 'test_helper'

module Workarea
  class Forter::UpdateStatusTest < TestCase
    def test_decision_status_update
      decision = Workarea::Forter::Decision.create(id: '1234')

      details_hash = {
        orderId: 1234,
        eventTime: Time.new.to_i * 1000,
        updatedStatus: "CANCELED_BY_MERCHANT"
      }

      Workarea::Forter::UpdateStatus.new.perform(decision.id, details_hash)

      decision.reload

      assert_equal("CANCELED_BY_MERCHANT", decision.external_order_status)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-forter-1.2.4 test/workers/forter/update_status_test.rb
workarea-forter-1.2.3 test/workers/forter/update_status_test.rb