mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-28 06:15:17 +00:00
Small cleanup and improvements
This commit is contained in:
@@ -951,12 +951,10 @@ RSpec.describe '
|
||||
order.finalize! # ensure order has a payment to capture
|
||||
order.payments << create(:check_payment, order:, amount: order.total)
|
||||
order.payments.first.capture!
|
||||
login_as_admin
|
||||
visit spree.edit_admin_order_path(order)
|
||||
end
|
||||
|
||||
it "ships the order and shipment email is sent" do
|
||||
login_as_admin
|
||||
expect(order.reload.shipped?).to be false
|
||||
|
||||
click_button 'Ship'
|
||||
@@ -974,7 +972,6 @@ RSpec.describe '
|
||||
end
|
||||
|
||||
it "ships the order without sending email" do
|
||||
login_as_admin
|
||||
expect(order.reload.shipped?).to be false
|
||||
|
||||
click_button 'Ship'
|
||||
|
||||
Reference in New Issue
Block a user