mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-15 04:14:24 +00:00
Adding proxy-order state to specs
This commit is contained in:
@@ -109,7 +109,7 @@ describe Admin::ProxyOrdersController, type: :controller do
|
||||
it 'renders the resumed proxy_order as json' do
|
||||
spree_get :resume, params
|
||||
json_response = JSON.parse(response.body)
|
||||
expect(json_response['state']).to eq "cart"
|
||||
expect(json_response['state']).to eq "resumed"
|
||||
expect(json_response['id']).to eq proxy_order.id
|
||||
expect(proxy_order.reload.canceled_at).to be nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user