mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-21 00:47:26 +00:00
Enforce RSpec expect(..).not_to over to_not
This commit is contained in:
@@ -371,7 +371,7 @@ describe 'Subscriptions' do
|
||||
expect{
|
||||
click_button('Create Subscription')
|
||||
expect(page).to have_content 'Please add at least one product'
|
||||
}.to_not change { Subscription.count }
|
||||
}.not_to change { Subscription.count }
|
||||
end
|
||||
|
||||
context 'and adding a new product' do
|
||||
|
||||
@@ -33,7 +33,7 @@ describe 'Subscriptions' do
|
||||
expect(page).to have_content "Just a few more steps before you can begin"
|
||||
|
||||
# subscriptions are enabled, instructions are not displayed
|
||||
expect(page).to_not have_content 'Under "Shop Preferences", /
|
||||
expect(page).not_to have_content 'Under "Shop Preferences", /
|
||||
enable the Subscriptions option'
|
||||
|
||||
# other relevant instructions are displayed
|
||||
@@ -54,7 +54,7 @@ describe 'Subscriptions' do
|
||||
end
|
||||
it "the subscriptions tab is not visible" do
|
||||
expect(page).to have_current_path "/admin/orders"
|
||||
expect(page).to_not have_link "Subscriptions", href: "/admin/subscriptions"
|
||||
expect(page).not_to have_link "Subscriptions", href: "/admin/subscriptions"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user