Sha256: b8f7a39d318a1254c485b1600b161d59f7398d30d2de42f536e276f3d4c3163c
Contents?: true
Size: 595 Bytes
Versions: 6
Compression:
Stored size: 595 Bytes
Contents
require 'test_helper' class ShipmentEventTest < Minitest::Test def test_equality options1 = [ 'ARRIVED AT UNIT', DateTime.new(2016, 5, 12, 5, 45), 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
6 entries across 6 versions & 1 rubygems