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