From 4bb906f0be22a0fa5df7d53848c8e4289c576cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 9 Jun 2020 14:44:51 +0200 Subject: [PATCH] Apply Layout/SpaceAroundMethodCallOperator rule This rule was added in rubocop 0.82. --- .rubocop.yml | 3 +++ spec/system/admin/poll/polls_spec.rb | 2 +- spec/system/admin/translatable_spec.rb | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 71ba33b0f..14bcb627c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -104,6 +104,9 @@ Layout/SpaceAroundBlockParameters: Layout/SpaceAroundEqualsInParameterDefault: Enabled: true +Layout/SpaceAroundMethodCallOperator: + Enabled: true + Layout/SpaceAroundOperators: Enabled: true diff --git a/spec/system/admin/poll/polls_spec.rb b/spec/system/admin/poll/polls_spec.rb index 4cb78c94a..f30d246ad 100644 --- a/spec/system/admin/poll/polls_spec.rb +++ b/spec/system/admin/poll/polls_spec.rb @@ -142,7 +142,7 @@ describe "Admin polls" do expect(page).not_to have_content("Do you support CONSUL?") expect(Poll::Question.count).to eq(0) - expect(Poll::Question::Answer.count). to eq(0) + expect(Poll::Question::Answer.count).to eq(0) end scenario "Can't destroy poll with votes", :js do diff --git a/spec/system/admin/translatable_spec.rb b/spec/system/admin/translatable_spec.rb index bb36264be..9accfeb98 100644 --- a/spec/system/admin/translatable_spec.rb +++ b/spec/system/admin/translatable_spec.rb @@ -155,7 +155,7 @@ describe "Admin edit translatable records" do select "Français", from: :select_language - expect(page). to have_ckeditor "Description", with: "" + expect(page).to have_ckeditor "Description", with: "" end end