spec/features/moderation/proposal_notifications_spec.rb
Line is too long. [120/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
@proposal_notification = create(:proposal_notification, proposal: proposal, created_at: Date.current - 4.days)
- Exclude checks
Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
newer_notification = create(:proposal_notification, title: "Newer notification", created_at: Time.current)
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
expect(page).not_to have_css("#proposal_notification_#{@proposal_notification.id}")
- Exclude checks
Line is too long. [140/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
moderated_notification = create(:proposal_notification, :moderated, title: "Moderated notification", created_at: Time.current - 1.day)
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
expect(page).not_to have_css("#proposal_notification_#{@proposal_notification.id}")
- Exclude checks
Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
proposal_notification = create(:proposal_notification, proposal: proposal, created_at: Date.current - 4.days)
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
expect(@proposal_notification.reload).to be_hidden
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
expect(@proposal_notification.author).not_to be_hidden
- Exclude checks
Line is too long. [105/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
create(:proposal_notification, :moderated, :ignored, title: "Ignored proposal", proposal: proposal)
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
within("#proposal_notification_#{@proposal_notification.id}") do
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
expect(@proposal_notification.reload).to be_ignored
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
expect(@proposal_notification.author).not_to be_hidden
- Exclude checks
Line is too long. [113/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
proposal_notification = create(:proposal_notification, proposal: proposal, created_at: Date.current - 4.days)
- Exclude checks
Line is too long. [141/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
old_moderated_notification = create(:proposal_notification, :moderated, title: "Older notification", created_at: Time.current - 2.days)
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
@proposal_notification.update(author: author)
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
expect(@proposal_notification.reload).to be_hidden
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
expect(@proposal_notification.reload).not_to be_hidden
- Exclude checks
Line is too long. [151/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
moderated_new_notification = create(:proposal_notification, :moderated, title: "Moderated new notification", created_at: Time.current - 12.hours)
- Exclude checks
Use let
instead of an instance variable. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable) Open
Open
check "proposal_notification_#{@proposal_notification.id}_check"
- Exclude checks