mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
Use :order_with_totals factory in CustomersController spec
This commit is contained in:
@@ -108,8 +108,7 @@ module Admin
|
||||
end
|
||||
|
||||
context 'when the customer has an order with a void payment' do
|
||||
let(:order) { create(:order, customer: customer, state: 'complete') }
|
||||
let!(:line_item) { create(:line_item, order: order, price: 10.0) }
|
||||
let(:order) { create(:order_with_totals, customer: customer, state: 'complete') }
|
||||
let!(:payment) { create(:payment, order: order, amount: order.total) }
|
||||
|
||||
before do
|
||||
|
||||
Reference in New Issue
Block a user