From 818466a142452ec7f960b5e1bd62acbf3dadea4f Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 19 Feb 2017 16:14:52 +1300 Subject: [PATCH] MethodCallWithoutArgsParentheses fixup --- .rubocop_todo.yml | 7 ------- spec/helpers/application_helper_spec.rb | 2 +- spec/views/plantings/new.html.haml_spec.rb | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) 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