Skip to content
This repository has been archived by the owner on Feb 23, 2020. It is now read-only.

Commit

Permalink
Use order to ensure specs run same across mysql & postgres.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dutil authored and Jeff Dutil committed Jan 9, 2015
1 parent 07826ba commit 602e2ca
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ module Wombat
end

context "there is a mix of created and new return items" do
let(:return_item) { order.inventory_units.last.current_or_new_return_item.tap(&:save) }
let(:return_item) do
order.inventory_units.order(:id).last.current_or_new_return_item.tap(&:save)
end

before do
rma.return_items << return_item
Expand Down

0 comments on commit 602e2ca

Please sign in to comment.