mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix weird spec failure cause by a Rails.cache.clear call resetting the currency to USD on CI only
This commit is contained in:
@@ -78,6 +78,8 @@ describe StandingOrderPlacementJob do
|
||||
end
|
||||
|
||||
it "moves orders to completion, but does not process the payment" do
|
||||
# If this spec starts complaining about no shipping methods being available
|
||||
# on CI, there is probably another spec resetting the currency though Rails.cache.clear
|
||||
order = standing_order1.orders.first
|
||||
ActionMailer::Base.deliveries.clear
|
||||
expect{job.send(:process, order)}.to change{order.reload.completed_at}.from(nil)
|
||||
|
||||
Reference in New Issue
Block a user