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:
@@ -63,7 +63,7 @@ feature 'Answers' do
|
||||
visit admin_question_path(question)
|
||||
|
||||
expect(page).to have_content(new_title)
|
||||
expect(page).to_not have_content(old_title)
|
||||
expect(page).not_to have_content(old_title)
|
||||
|
||||
expect(page.body.index(new_title)).to be < page.body.index(answer2.title)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user