Skip to content

Commit

Permalink
Update/fix test for tracking_list and the first tracking item
Browse files Browse the repository at this point in the history
  • Loading branch information
dcloud committed Mar 22, 2024
1 parent 32848ec commit 7880634
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@
it 'includes the tracking_list records as an array' do
tracking_list = attributes['tracking_list']
expect(tracking_list).to be_an(Array)
expect(tracking_list[0]).to all(be_a(Hash))
expect(tracking_list[0]).to include(carrier: 'UPS', complete_date_time: '2023-03-28T04:39:11-04:00')
tracking_item = tracking_list[0]
expect(tracking_item).to be_a(Hash)
expect(tracking_list[0]).to include({ 'carrier' => 'UPS', 'complete_date_time' => '2023-03-28T04:39:11-04:00' })
end
end

0 comments on commit 7880634

Please sign in to comment.