spec/features/moderation/proposal_notifications_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [120/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

          @proposal_notification = create(:proposal_notification, proposal: proposal, created_at: Date.current - 4.days)

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      newer_notification = create(:proposal_notification, title: "Newer notification", created_at: Time.current)

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          expect(page).not_to have_css("#proposal_notification_#{@proposal_notification.id}")

Line is too long. [140/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      moderated_notification = create(:proposal_notification, :moderated, title: "Moderated notification", created_at: Time.current - 1.day)

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          expect(page).not_to have_css("#proposal_notification_#{@proposal_notification.id}")

Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    proposal_notification = create(:proposal_notification, proposal: proposal, created_at: Date.current - 4.days)

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          expect(@proposal_notification.reload).to be_hidden

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          expect(@proposal_notification.author).not_to be_hidden

Line is too long. [105/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      create(:proposal_notification, :moderated, :ignored, title: "Ignored proposal", proposal: proposal)

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          within("#proposal_notification_#{@proposal_notification.id}") do

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          expect(@proposal_notification.reload).to be_ignored

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          expect(@proposal_notification.author).not_to be_hidden

Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

    proposal_notification = create(:proposal_notification, proposal: proposal, created_at: Date.current - 4.days)

Line is too long. [141/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      old_moderated_notification = create(:proposal_notification, :moderated, title: "Older notification", created_at: Time.current - 2.days)

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          @proposal_notification.update(author: author)

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          expect(@proposal_notification.reload).to be_hidden

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

          expect(@proposal_notification.reload).not_to be_hidden

Line is too long. [151/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

      moderated_new_notification = create(:proposal_notification, :moderated, title: "Moderated new notification", created_at: Time.current - 12.hours)

Use let instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable)
Open

            check "proposal_notification_#{@proposal_notification.id}_check"

There are no issues that match your filters.

Category
Status