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:
@@ -22,13 +22,13 @@ feature 'Users' do
|
||||
click_button 'Create user'
|
||||
|
||||
expect(page).to have_content "We have sent an email"
|
||||
expect(page).to_not have_content "Autogenerated password is"
|
||||
expect(page).not_to have_content "Autogenerated password is"
|
||||
|
||||
user = User.find_by(email: 'pepe@gmail.com')
|
||||
|
||||
expect(user).to be_level_three_verified
|
||||
expect(user).to be_residence_verified
|
||||
expect(user).to_not be_confirmed
|
||||
expect(user).not_to be_confirmed
|
||||
expect(user.date_of_birth).to have_content Date.new(1980, 12, 31)
|
||||
|
||||
sent_token = /.*confirmation_token=(.*)".*/.match(ActionMailer::Base.deliveries.last.body.to_s)[1]
|
||||
@@ -61,7 +61,7 @@ feature 'Users' do
|
||||
|
||||
click_button 'Create user'
|
||||
|
||||
expect(page).to_not have_content "We have sent an email"
|
||||
expect(page).not_to have_content "We have sent an email"
|
||||
expect(page).to have_content "Autogenerated password is"
|
||||
|
||||
user = User.find_by(username: 'Kelly Sue')
|
||||
@@ -79,7 +79,7 @@ feature 'Users' do
|
||||
fill_in 'document_verification_document_number', with: '12345678Z'
|
||||
click_button 'Check'
|
||||
|
||||
expect(page).to_not have_content "This user account is already verified."
|
||||
expect(page).not_to have_content "This user account is already verified."
|
||||
expect(page).to have_content "This user can participate in the website with the following permissions"
|
||||
|
||||
click_link "Delete user"
|
||||
|
||||
Reference in New Issue
Block a user