mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update spec to be more defensive
Actually, this one fail on master too (when changing month?)
This commit is contained in:
committed by
Konrad
parent
73f55ae776
commit
eb621cae35
@@ -534,7 +534,7 @@ describe '
|
||||
}
|
||||
let!(:o2) {
|
||||
create(:order_with_distributor, state: 'complete', shipment_state: 'ready',
|
||||
completed_at: Time.zone.today - 7.days)
|
||||
completed_at: Time.zone.today - 6.days)
|
||||
}
|
||||
let!(:o3) {
|
||||
create(:order_with_distributor, state: 'complete', shipment_state: 'ready',
|
||||
@@ -542,7 +542,7 @@ describe '
|
||||
}
|
||||
let!(:o4) {
|
||||
create(:order_with_distributor, state: 'complete', shipment_state: 'ready',
|
||||
completed_at: Time.zone.now.end_of_day + 1.second)
|
||||
completed_at: Time.zone.now.end_of_day + 1.day)
|
||||
}
|
||||
let!(:li1) { create(:line_item_with_shipment, order: o1, quantity: 1 ) }
|
||||
let!(:li2) { create(:line_item_with_shipment, order: o2, quantity: 2 ) }
|
||||
|
||||
Reference in New Issue
Block a user