diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8aa09404a..c7ed6a687 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -247,13 +247,6 @@ Style/Lambda: - 'spec/controllers/member_controller_spec.rb' - 'spec/models/photo_spec.rb' -# Offense count: 2 -# Cop supports --auto-correct. -Style/MethodCallWithoutArgsParentheses: - Exclude: - - 'spec/helpers/application_helper_spec.rb' - - 'spec/views/plantings/new.html.haml_spec.rb' - # Offense count: 8 # Cop supports --auto-correct. Style/MultilineBlockLayout: diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 7f623caef..346cf722a 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -125,7 +125,7 @@ describe ApplicationHelper do expect(build_alert_classes(:info)).to include 'alert-info' end it 'works when blank' do - expect(build_alert_classes()).to include 'alert-info' + expect(build_alert_classes).to include 'alert-info' end it 'includes base classes' do expect(build_alert_classes(:info)).to include 'alert alert-dismissable' diff --git a/spec/views/plantings/new.html.haml_spec.rb b/spec/views/plantings/new.html.haml_spec.rb index c2f2dd80b..57cb605d6 100644 --- a/spec/views/plantings/new.html.haml_spec.rb +++ b/spec/views/plantings/new.html.haml_spec.rb @@ -31,7 +31,7 @@ describe "plantings/new" do context "logged in" do before(:each) do sign_in @member - assign(:planting, Planting.new()) + assign(:planting, Planting.new) assign(:crop, @crop2) assign(:garden, @garden_z) render