Enforce RSpec expect(..).not_to over to_not

This commit is contained in:
Maikel Linke
2024-03-07 16:57:54 +11:00
parent b4385623b2
commit bd6b0ddbf3
163 changed files with 616 additions and 613 deletions

View File

@@ -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