diff --git a/Gemfile.lock b/Gemfile.lock
index 5a5c68f2e..341c79470 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -183,7 +183,7 @@ GEM
mini_portile2 (~> 2.4.0)
null_logger (0.0.1)
parallel (1.19.1)
- parser (2.7.1.1)
+ parser (2.7.1.2)
ast (~> 2.4.0)
phantomjs (2.1.1.0)
plek (3.0.0)
@@ -258,7 +258,7 @@ GEM
rexml
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
- rubocop-govuk (3.7.0)
+ rubocop-govuk (3.8.0)
rubocop (= 0.82.0)
rubocop-rails (~> 2)
rubocop-rake (~> 0.5.1)
@@ -269,7 +269,7 @@ GEM
rubocop (>= 0.72.0)
rubocop-rake (0.5.1)
rubocop
- rubocop-rspec (1.38.1)
+ rubocop-rspec (1.39.0)
rubocop (>= 0.68.1)
ruby-progressbar (1.10.1)
rubyzip (2.0.0)
diff --git a/test/components/important_metadata_test.rb b/test/components/important_metadata_test.rb
index f15903abc..28f3f294f 100644
--- a/test/components/important_metadata_test.rb
+++ b/test/components/important_metadata_test.rb
@@ -18,7 +18,7 @@ def component_name
render_component(
title: "The release date has been changed",
items: {
- "Release Date": "14 October 2016",
+ "Release Date": "14 October 2016",
},
)
diff --git a/test/presenters/content_item/parts_test.rb b/test/presenters/content_item/parts_test.rb
index 2701efc2d..2154f0951 100644
--- a/test/presenters/content_item/parts_test.rb
+++ b/test/presenters/content_item/parts_test.rb
@@ -215,22 +215,22 @@ def content_item
end
assert_equal @parts.parts_navigation, [
- [
- "first-title", "second-title"
- ],
- [
- "third-title",
- "fourth-title",
- ],
- ]
+ [
+ "first-title", "second-title"
+ ],
+ [
+ "third-title",
+ "fourth-title",
+ ],
+ ]
end
end
diff --git a/test/presenters/specialist_document_presenter_test.rb b/test/presenters/specialist_document_presenter_test.rb
index 0d441b652..1e2b29d6a 100644
--- a/test/presenters/specialist_document_presenter_test.rb
+++ b/test/presenters/specialist_document_presenter_test.rb
@@ -82,11 +82,11 @@ class PresentedSpecialistDocument < SpecialistDocumentTestCase
test "has title without context" do
assert presented_item("aaib-reports").is_a?(ContentItem::TitleAndContext)
title_component_params = {
- title: schema_item("aaib-reports")["title"],
- context_locale: nil,
- average_title_length: "long",
+ title: schema_item("aaib-reports")["title"],
+ context_locale: nil,
+ average_title_length: "long",
- }
+ }
assert_equal title_component_params, presented_item("aaib-reports").title_and_context
end
@@ -215,17 +215,17 @@ def example_facet(overrides = {})
test "ignores facets if valid key but set to an empty string" do
example = example_with_finder_facets([
- {
- "name" => "Facet name",
- "key" => "facet-key",
- "type" => "text",
- },
- {
- "name" => "Date facet",
- "key" => "date-facet",
- "type" => "date",
- },
- ],
+ {
+ "name" => "Facet name",
+ "key" => "facet-key",
+ "type" => "text",
+ },
+ {
+ "name" => "Date facet",
+ "key" => "date-facet",
+ "type" => "date",
+ },
+ ],
"facet-key" => "",
"date-facet" => "")
@@ -283,27 +283,27 @@ def example_facet(overrides = {})
test "puts date facets together and before text facets" do
example = example_with_finder_facets([
- {
- "name" => "Facet name",
- "key" => "facet-key",
- "type" => "text",
- },
- {
- "name" => "First date facet",
- "key" => "first-date-facet",
- "type" => "date",
- },
- {
- "name" => "Second date facet",
- "key" => "second-date-facet",
- "type" => "date",
- },
- {
- "name" => "More text",
- "key" => "more-text",
- "type" => "text",
- },
- ],
+ {
+ "name" => "Facet name",
+ "key" => "facet-key",
+ "type" => "text",
+ },
+ {
+ "name" => "First date facet",
+ "key" => "first-date-facet",
+ "type" => "date",
+ },
+ {
+ "name" => "Second date facet",
+ "key" => "second-date-facet",
+ "type" => "date",
+ },
+ {
+ "name" => "More text",
+ "key" => "more-text",
+ "type" => "text",
+ },
+ ],
"facet-key" => "Text",
"first-date-facet" => "2010-01-01",
"second-date-facet" => "2010-02-03",
@@ -327,12 +327,12 @@ def example_facet(overrides = {})
test "omits first_published_at facet values from `other` section of component parameters to avoid duplicates" do
facets = [
- {
- "name" => "Published",
- "key" => "first_published_at",
- "type" => "date",
- },
- ]
+ {
+ "name" => "Published",
+ "key" => "first_published_at",
+ "type" => "date",
+ },
+ ]
example = example_with_finder_facets(facets, "first_published_at" => "2010-01-01")
presented = present_example(example)
@@ -341,12 +341,12 @@ def example_facet(overrides = {})
test "uses first published date in facets as canonical publish date if provided" do
facets = [
- {
- "name" => "Published",
- "key" => "first_published_at",
- "type" => "date",
- },
- ]
+ {
+ "name" => "Published",
+ "key" => "first_published_at",
+ "type" => "date",
+ },
+ ]
example = example_with_finder_facets(facets, "first_published_at" => "2010-01-01")
example["details"]["change_history"] = [
diff --git a/test/presenters/speech_presenter_test.rb b/test/presenters/speech_presenter_test.rb
index 00adbb8ed..ed7c405a6 100644
--- a/test/presenters/speech_presenter_test.rb
+++ b/test/presenters/speech_presenter_test.rb
@@ -91,7 +91,7 @@ def example_schema_name
"Prime Minister's Office, 10 Downing Street",
"Cabinet Office",
"Her Majesty the Queen",
- ], presented_item(example_schema_name).from
+ ], presented_item(example_schema_name).from
end
end
end
diff --git a/test/presenters/topical_event_about_page_presenter_test.rb b/test/presenters/topical_event_about_page_presenter_test.rb
index ff5d9cade..ee8d4e240 100644
--- a/test/presenters/topical_event_about_page_presenter_test.rb
+++ b/test/presenters/topical_event_about_page_presenter_test.rb
@@ -14,13 +14,13 @@ def schema_name
test "presents a list of contents extracted from headings in the body" do
assert_equal [
- { text: "Response in the UK", id: "response-in-the-uk", href: "#response-in-the-uk" },
- { text: "Response in Africa", id: "response-in-africa", href: "#response-in-africa" },
- { text: "Advice for travellers", id: "advice-for-travellers", href: "#advice-for-travellers" },
- { text: "Advice for medics", id: "advice-for-medics", href: "#advice-for-medics" },
- { text: "Advice for aid workers", id: "advice-for-aid-workers", href: "#advice-for-aid-workers" },
- { text: "How you can help", id: "how-you-can-help", href: "#how-you-can-help" },
- ], presented_item.contents
+ { text: "Response in the UK", id: "response-in-the-uk", href: "#response-in-the-uk" },
+ { text: "Response in Africa", id: "response-in-africa", href: "#response-in-africa" },
+ { text: "Advice for travellers", id: "advice-for-travellers", href: "#advice-for-travellers" },
+ { text: "Advice for medics", id: "advice-for-medics", href: "#advice-for-medics" },
+ { text: "Advice for aid workers", id: "advice-for-aid-workers", href: "#advice-for-aid-workers" },
+ { text: "How you can help", id: "how-you-can-help", href: "#how-you-can-help" },
+ ], presented_item.contents
end
test "presents no contents when no headings in the body" do
diff --git a/test/services/world_location_base_path_test.rb b/test/services/world_location_base_path_test.rb
index c4de49621..ecb96f723 100644
--- a/test/services/world_location_base_path_test.rb
+++ b/test/services/world_location_base_path_test.rb
@@ -21,9 +21,9 @@ class WorldLocationBasePathWithoutBasePath < ActiveSupport::TestCase
class WorldLocationBasePathForExceptionalCase < ActiveSupport::TestCase
{
- "Democratic Republic of Congo" => "democratic-republic-of-congo",
- "South Georgia and the South Sandwich Islands" => "south-georgia-and-the-south-sandwich-islands",
- "St Pierre & Miquelon" => "st-pierre-miquelon",
+ "Democratic Republic of Congo" => "democratic-republic-of-congo",
+ "South Georgia and the South Sandwich Islands" => "south-georgia-and-the-south-sandwich-islands",
+ "St Pierre & Miquelon" => "st-pierre-miquelon",
}.each do |title, expected_slug|
test "returns /world/#{expected_slug}/news" do
link = {