Skip to content

Commit

Permalink
Improve spec readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-brough committed Aug 17, 2016
1 parent 4da7e8a commit cb302fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/spec/models/spree/order_cancellations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@
it "generates the correct total amount" do
order.cancellations.short_ship([inventory_unit_1])
order.cancellations.short_ship([inventory_unit_2])
expect(line_item.adjustments.map(&:amount)).to match_array([0.01, -0.83, -0.84])
expect(line_item.adjustments.map(&:amount)).to match_array(
[
0.01, # tax adjustment
-0.84, # short ship 1
-0.83, # short ship 2
]
)
expect(line_item.total).to eq 0
end
end
Expand Down

0 comments on commit cb302fb

Please sign in to comment.