Enable RSpec/NotToNot cop and fix all issues

Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot
This commit is contained in:
Bertocq
2018-01-07 17:39:48 +01:00
parent 79a3b97c64
commit 34bb9d65b1
143 changed files with 1041 additions and 1038 deletions

View File

@@ -141,7 +141,7 @@ module CommonActions
end
def expect_to_not_be_signed_in
expect(find('.top-bar')).to_not have_content 'My account'
expect(find('.top-bar')).not_to have_content 'My account'
end
def select_date(values, selector)
@@ -210,12 +210,12 @@ module CommonActions
def expect_message_voting_not_allowed
expect(page).to have_content 'Voting phase is closed'
expect(page).to_not have_selector('.in-favor a')
expect(page).not_to have_selector('.in-favor a')
end
def expect_message_selecting_not_allowed
expect(page).to have_content 'No Selecting Allowed'
expect(page).to_not have_selector('.in-favor a')
expect(page).not_to have_selector('.in-favor a')
end
def expect_message_organizations_cannot_vote
@@ -297,8 +297,8 @@ module CommonActions
def expect_no_badge_for(resource_name, resource)
within("##{resource_name}_#{resource.id}") do
expect(page).to_not have_css ".label.round"
expect(page).to_not have_content "Employee"
expect(page).not_to have_css ".label.round"
expect(page).not_to have_content "Employee"
end
end
@@ -314,7 +314,7 @@ module CommonActions
within("#poll_question_#{question.id}_answers") do
click_link answer.to_s
expect(page).to_not have_link(answer.to_s)
expect(page).not_to have_link(answer.to_s)
end
end