spec/features/notifications_spec.rb
Do not use let!
for test setup. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetSetup) Open
Open
let!(:notification1) { create(:notification, notifiable: proposal_notification, user: user1) }
- Exclude checks
Prefer not_to
over to_not
. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot) Open
Open
expect(page).to_not have_css("#notifications")
- Exclude checks
Do not use let!
for test setup. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetSetup) Open
Open
let!(:notification3) { create(:notification, notifiable: proposal_notification, user: user3) }
- Exclude checks
Prefer not_to
over to_not
. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot) Open
Open
expect(page).to_not have_content(unread.notifiable_title)
- Exclude checks
Prefer not_to
over to_not
. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot) Open
Open
expect(page).to_not have_css(".icon-circle")
- Exclude checks
Do not use let!
for test setup. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetSetup) Open
Open
let!(:notification2) { create(:notification, notifiable: proposal_notification, user: user2) }
- Exclude checks
Prefer not_to
over to_not
. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot) Open
Open
expect(page).to_not have_content(notification1.notifiable_title)
- Exclude checks
Prefer not_to
over to_not
. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot) Open
Open
expect(page).to_not have_content(read.notifiable_title)
- Exclude checks