spec/features/notifications_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Do not use let! for test setup. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetSetup)
Open

    let!(:notification1) { create(:notification, notifiable: proposal_notification, user: user1) }
Severity: Minor
Found in spec/features/notifications_spec.rb by rubocop

Prefer not_to over to_not. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot)
Open

    expect(page).to_not have_css("#notifications")
Severity: Minor
Found in spec/features/notifications_spec.rb by rubocop

Do not use let! for test setup. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetSetup)
Open

    let!(:notification3) { create(:notification, notifiable: proposal_notification, user: user3) }
Severity: Minor
Found in spec/features/notifications_spec.rb by rubocop

Prefer not_to over to_not. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot)
Open

    expect(page).to_not have_content(unread.notifiable_title)
Severity: Minor
Found in spec/features/notifications_spec.rb by rubocop

Prefer not_to over to_not. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot)
Open

      expect(page).to_not have_css(".icon-circle")
Severity: Minor
Found in spec/features/notifications_spec.rb by rubocop

Do not use let! for test setup. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetSetup)
Open

    let!(:notification2) { create(:notification, notifiable: proposal_notification, user: user2) }
Severity: Minor
Found in spec/features/notifications_spec.rb by rubocop

Prefer not_to over to_not. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot)
Open

    expect(page).to_not have_content(notification1.notifiable_title)
Severity: Minor
Found in spec/features/notifications_spec.rb by rubocop

Prefer not_to over to_not. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot)
Open

    expect(page).to_not have_content(read.notifiable_title)
Severity: Minor
Found in spec/features/notifications_spec.rb by rubocop

There are no issues that match your filters.

Category
Status