Apply Layout/LineLength rubocop rule
Note we're excluding a few files: * Configuration files that weren't generated by us * Migration files that weren't generated by us * The Gemfile, since it includes an important comment that must be on the same line as the gem declaration * The Budget::Stats class, since the heading statistics are a mess and having shorter lines would require a lot of refactoring
This commit is contained in:
@@ -11,7 +11,8 @@ describe Account::PermissionsListComponent do
|
||||
it "adds a hint when an action cannot be performed" do
|
||||
render_inline Account::PermissionsListComponent.new(User.new)
|
||||
|
||||
expect(page).to have_css "li", exact_text: "Additional verification needed Support proposals", normalize_ws: true
|
||||
expect(page).to have_css "li", exact_text: "Additional verification needed Support proposals",
|
||||
normalize_ws: true
|
||||
expect(page).to have_css "li", exact_text: "Participate in debates", normalize_ws: true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -26,7 +26,8 @@ describe Admin::BudgetHeadings::FormComponent do
|
||||
|
||||
render_inline component
|
||||
|
||||
expect(page).to have_select "Scope of operation", options: ["All city", "Under the sea", "Above the skies"]
|
||||
expect(page).to have_select "Scope of operation",
|
||||
options: ["All city", "Under the sea", "Above the skies"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,7 +6,9 @@ describe Admin::Geozones::IndexComponent, :admin do
|
||||
geozones = [
|
||||
create(:geozone, :with_geojson, name: "GeoJSON", external_code: "1", census_code: "2"),
|
||||
create(:geozone, :with_html_coordinates, name: "HTML", external_code: "3", census_code: "4"),
|
||||
create(:geozone, :with_geojson, :with_html_coordinates, name: "With both", external_code: "6", census_code: "7"),
|
||||
create(:geozone, :with_geojson, :with_html_coordinates, name: "With both",
|
||||
external_code: "6",
|
||||
census_code: "7"),
|
||||
create(:geozone, name: "With none", external_code: "8", census_code: "9")
|
||||
]
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require "rails_helper"
|
||||
|
||||
describe Admin::SiteCustomization::Pages::IndexComponent, controller: Admin::SiteCustomization::PagesController do
|
||||
describe Admin::SiteCustomization::Pages::IndexComponent,
|
||||
controller: Admin::SiteCustomization::PagesController do
|
||||
before { SiteCustomization::Page.delete_all }
|
||||
|
||||
it "shows date in created_at and updated_at fields" do
|
||||
|
||||
@@ -32,7 +32,8 @@ describe Budgets::BudgetComponent do
|
||||
render_inline Budgets::BudgetComponent.new(budget)
|
||||
|
||||
page.find(".budget-header") do |header|
|
||||
expect(header).to have_link "Participate now!", href: "https://consuldemocracy.org", class: "main-link"
|
||||
expect(header).to have_link "Participate now!", href: "https://consuldemocracy.org",
|
||||
class: "main-link"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -68,7 +68,8 @@ describe SDG::RelatedListSelectorComponent do
|
||||
expect(page.find_field("Goals and Targets")["data-suggestions-list"]).to eq([{
|
||||
tag: "1.1. Eradicate Extreme Poverty",
|
||||
display_text: "1.1",
|
||||
title: "By 2030, eradicate extreme poverty for all people everywhere, currently measured as people living on less than $1.25 a day",
|
||||
title: "By 2030, eradicate extreme poverty for all people everywhere, " \
|
||||
"currently measured as people living on less than $1.25 a day",
|
||||
value: "1.1"
|
||||
}].to_json)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user