You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's so much stuff happening on the order workflow that in specs we should never set order.state. The order.state should be achieved through the workflow order.next.
This task is to remove all uses of order state in spec tests, for example: let!(:order1) { create(:order, state: 'complete', completed_at: 1.day.ago, distributor: dist1, billing_address: create(:address) ) }
What we should change and why (this is tech debt)
There's so much stuff happening on the order workflow that in specs we should never set order.state. The order.state should be achieved through the workflow order.next.
This task is to remove all uses of order state in spec tests, for example:
let!(:order1) { create(:order, state: 'complete', completed_at: 1.day.ago, distributor: dist1, billing_address: create(:address) ) }
Some specs where this is done:
Impact and timeline
Better and more correct specs.
The text was updated successfully, but these errors were encountered: