Add and apply ArgumentAlignment rubocop rule

We're choosing the default `with_first_argument` style because it's the
one we use the most.
This commit is contained in:
Javi Martín
2023-07-01 17:37:58 +02:00
parent 32b1fc53e1
commit 629e208e9d
202 changed files with 907 additions and 830 deletions

View File

@@ -4,7 +4,8 @@ describe "Custom Pages" do
context "New custom page" do
context "Published" do
scenario "See page" do
custom_page = create(:site_customization_page, :published,
custom_page = create(
:site_customization_page, :published,
slug: "other-slug",
title_en: "Custom page",
content_en: "Text for new custom page",
@@ -20,7 +21,8 @@ describe "Custom Pages" do
end
scenario "Show all fields and text with links" do
custom_page = create(:site_customization_page, :published,
custom_page = create(
:site_customization_page, :published,
slug: "slug-with-all-fields-filled",
title_en: "Custom page",
subtitle_en: "This is my new custom page",
@@ -39,7 +41,8 @@ describe "Custom Pages" do
end
scenario "Don't show subtitle if its blank" do
custom_page = create(:site_customization_page, :published,
custom_page = create(
:site_customization_page, :published,
slug: "slug-without-subtitle",
title_en: "Custom page",
subtitle_en: "",
@@ -57,7 +60,8 @@ describe "Custom Pages" do
end
scenario "Listed in more information page" do
create(:site_customization_page, :published,
create(
:site_customization_page, :published,
slug: "another-slug",
title_en: "Another custom page",
subtitle_en: "Subtitle for custom page",
@@ -70,7 +74,8 @@ describe "Custom Pages" do
end
scenario "Not listed in more information page" do
custom_page = create(:site_customization_page, :published,
custom_page = create(
:site_customization_page, :published,
slug: "another-slug", title_en: "Another custom page",
subtitle_en: "Subtitle for custom page",
more_info_flag: false