mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-03 06:59:14 +00:00
Enforce RSpec expect(..).not_to over to_not
This commit is contained in:
@@ -97,7 +97,7 @@ describe Admin::VariantOverridesController, type: :controller do
|
||||
it "allows to update other variant overrides" do
|
||||
put :bulk_update, as: format, params: { variant_overrides: variant_override_params }
|
||||
|
||||
expect(response).to_not redirect_to unauthorized_path
|
||||
expect(response).not_to redirect_to unauthorized_path
|
||||
variant_override.reload
|
||||
expect(variant_override.price).to eq 123.45
|
||||
end
|
||||
@@ -193,7 +193,7 @@ describe Admin::VariantOverridesController, type: :controller do
|
||||
it "does not reset count_on_hand for variant_overrides not in params" do
|
||||
expect {
|
||||
put :bulk_reset, params:
|
||||
}.to_not change{ variant_override3.reload.count_on_hand }
|
||||
}.not_to change{ variant_override3.reload.count_on_hand }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user