Merge pull request #4858 from consul/spacing_fixes

Fix Rubocop convention offenses
This commit is contained in:
Javi Martín
2022-06-13 19:07:39 +02:00
committed by GitHub
3 changed files with 4 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ class Admin::TagsController < Admin::BaseController
end end
private private
def tags def tags
@tags ||= Tag.category.page(params[:page]) @tags ||= Tag.category.page(params[:page])
end end

View File

@@ -289,7 +289,7 @@ describe Abilities::Common do
before { user.update(verified_at: Time.current) } before { user.update(verified_at: Time.current) }
it { should be_able_to(:vote, Proposal) } it { should be_able_to(:vote, Proposal) }
it { should be_able_to(:new, DirectMessage) } it { should be_able_to(:new, DirectMessage) }
it { should be_able_to(:create, DirectMessage) } it { should be_able_to(:create, DirectMessage) }

View File

@@ -254,7 +254,7 @@ describe "Legislation" do
expect(page).to have_content("Homepage") expect(page).to have_content("Homepage")
end end
expect(page).to have_content("This is the process homepage") expect(page).to have_content("This is the process homepage")
end end
scenario "disabled", :with_frozen_time do scenario "disabled", :with_frozen_time do
@@ -280,7 +280,7 @@ describe "Legislation" do
visit legislation_process_path(process) visit legislation_process_path(process)
expect(page).to have_content("This phase is not open yet") expect(page).to have_content("This phase is not open yet")
end end
scenario "open without questions" do scenario "open without questions" do