Sha256: 96cf5f0b222eec049f2f1f85dccf371684bec19159326f72cac51d4a15590834

Contents?: true

Size: 614 Bytes

Versions: 67

Compression:

Stored size: 614 Bytes

Contents

require 'test_helper'

class ShipmentEventTest < ActiveSupport::TestCase
  def test_equality
    options1 = [
      'ARRIVED AT UNIT',
      DateTime.parse('Thu 12 May 2016 05:45:00'),
      Location.new(city: 'SAN JOSE', state: 'CA', postal_code: '90001', country: 'US'),
      'ARRIVED AT UNIT',
      '07'
    ]
    # Copies options to create new DateTime and Location objects to check for similar distinct objects
    options2 = options1.dup

    shipment_event_1 = ShipmentEvent.new(*options1)
    shipment_event_2 = ShipmentEvent.new(*options2)

    assert_equal shipment_event_1, shipment_event_2
  end
end

Version data entries

67 entries across 67 versions & 3 rubygems

Version Path
workarea-core-3.5.27 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.26 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.4.45 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.25 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.23 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.4.44 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.22 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.4.43 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.21 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.4.42 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.20 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.4.41 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.19 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.4.40 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.18 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.4.39 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.17 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.4.38 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.5.16 vendor/active_shipping/test/unit/shipment_event_test.rb
workarea-core-3.4.37 vendor/active_shipping/test/unit/shipment_event_test.rb