Apply Layout/SpaceAroundMethodCallOperator rule

This rule was added in rubocop 0.82.
This commit is contained in:
Javi Martín
2020-06-09 14:44:51 +02:00
parent 5315f34c72
commit 4bb906f0be
3 changed files with 5 additions and 2 deletions

View File

@@ -104,6 +104,9 @@ Layout/SpaceAroundBlockParameters:
Layout/SpaceAroundEqualsInParameterDefault: Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true Enabled: true
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Layout/SpaceAroundOperators: Layout/SpaceAroundOperators:
Enabled: true Enabled: true

View File

@@ -142,7 +142,7 @@ describe "Admin polls" do
expect(page).not_to have_content("Do you support CONSUL?") expect(page).not_to have_content("Do you support CONSUL?")
expect(Poll::Question.count).to eq(0) expect(Poll::Question.count).to eq(0)
expect(Poll::Question::Answer.count). to eq(0) expect(Poll::Question::Answer.count).to eq(0)
end end
scenario "Can't destroy poll with votes", :js do scenario "Can't destroy poll with votes", :js do

View File

@@ -155,7 +155,7 @@ describe "Admin edit translatable records" do
select "Français", from: :select_language select "Français", from: :select_language
expect(page). to have_ckeditor "Description", with: "" expect(page).to have_ckeditor "Description", with: ""
end end
end end