-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken create(:return_item) factory calls
create(:return_item) causes the DefaultRefundAmount calculator to be called, which expects an order to be set on the return item's inventory unit[1]. However, the order is nil in the inventory_unit factory that comes with Solidus[2], so we need to set an order manually. [1]: solidusio/solidus@06df181#diff-fb6cfba1ceafec4b06ee8ec4ccb986beR4 [2]: https://github.com/solidusio/solidus/blob/749691ecaa2e231b3ccc027d038fc07820190177/core/lib/spree/testing_support/factories/inventory_unit_factory.rb#L11
- Loading branch information
1 parent
d1a5772
commit fc8193f
Showing
3 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters