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:
@@ -92,7 +92,7 @@ feature 'Admin poll questions' do
|
||||
visit admin_questions_path
|
||||
|
||||
expect(page).to have_content(new_title)
|
||||
expect(page).to_not have_content(old_title)
|
||||
expect(page).not_to have_content(old_title)
|
||||
end
|
||||
|
||||
scenario 'Destroy' do
|
||||
@@ -105,7 +105,7 @@ feature 'Admin poll questions' do
|
||||
click_link "Delete"
|
||||
end
|
||||
|
||||
expect(page).to_not have_content(question1.title)
|
||||
expect(page).not_to have_content(question1.title)
|
||||
expect(page).to have_content(question2.title)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user