mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-14 04:04:23 +00:00
Enforce RSpec expect(..).not_to over to_not
This commit is contained in:
@@ -172,7 +172,7 @@ describe Api::V0::VariantsController, type: :controller do
|
||||
variant = product.variants.first
|
||||
spree_delete :destroy, id: variant.to_param
|
||||
|
||||
expect(variant.reload).to_not be_deleted
|
||||
expect(variant.reload).not_to be_deleted
|
||||
expect(assigns(:variant).errors[:product]).to include "must have at least one variant"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user