mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
update outdated spec
This spec was added as part of cbac916e66 - now that we're updating the unit_value to be 1, we expect this not to fail
This commit is contained in:
@@ -40,7 +40,7 @@ describe Spree::Admin::ProductsController, type: :controller do
|
||||
|
||||
before { controller_login_as_enterprise_user([producer]) }
|
||||
|
||||
it 'fails' do
|
||||
it 'succeeds' do
|
||||
spree_post :bulk_update,
|
||||
"products" => [
|
||||
{
|
||||
@@ -50,7 +50,7 @@ describe Spree::Admin::ProductsController, type: :controller do
|
||||
}
|
||||
]
|
||||
|
||||
expect(response).to have_http_status(400)
|
||||
expect(response).to have_http_status(302)
|
||||
end
|
||||
|
||||
it 'does not redirect to bulk_products' do
|
||||
@@ -63,8 +63,8 @@ describe Spree::Admin::ProductsController, type: :controller do
|
||||
}
|
||||
]
|
||||
|
||||
expect(response).not_to redirect_to(
|
||||
'/api/products/bulk_products?page=1;per_page=500;'
|
||||
expect(response).to redirect_to(
|
||||
'/api/products/bulk_products'
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user