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

@@ -47,7 +47,7 @@ describe "/admin/products/:product_id/images", type: :request do
expect {
subject
product.reload
}.to_not change{ product.image&.attachment&.filename.to_s }
}.not_to change{ product.image&.attachment&.filename.to_s }
pending "error status code"
expect(response).to be_unprocessable