From f57af25876865f94cc58468888a21174078f44cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Oct 2021 11:02:31 +0000 Subject: [PATCH 1/2] Bump govuk_publishing_components from 27.5.0 to 27.7.0 Bumps [govuk_publishing_components](https://github.com/alphagov/govuk_publishing_components) from 27.5.0 to 27.7.0. - [Release notes](https://github.com/alphagov/govuk_publishing_components/releases) - [Changelog](https://github.com/alphagov/govuk_publishing_components/blob/master/CHANGELOG.md) - [Commits](https://github.com/alphagov/govuk_publishing_components/compare/v27.5.0...v27.7.0) --- updated-dependencies: - dependency-name: govuk_publishing_components dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 71c79d56a..913572819 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -141,7 +141,7 @@ GEM govuk_personalisation (0.9.0) plek (>= 1.9.0) rails (~> 6) - govuk_publishing_components (27.5.0) + govuk_publishing_components (27.7.0) govuk_app_config govuk_personalisation (>= 0.7.0) kramdown From 8f89d3eda3518aff1df10df2a13da4b540640a61 Mon Sep 17 00:00:00 2001 From: Jon Kirwan <87758239+jon-kirwan@users.noreply.github.com> Date: Wed, 13 Oct 2021 13:59:38 +0100 Subject: [PATCH 2/2] Update devolved nations component tests --- test/integration/detailed_guide_test.rb | 2 +- test/integration/publication_test.rb | 6 +++--- test/test_helper.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/detailed_guide_test.rb b/test/integration/detailed_guide_test.rb index 67f8561ac..b2b2a7138 100644 --- a/test/integration/detailed_guide_test.rb +++ b/test/integration/detailed_guide_test.rb @@ -53,7 +53,7 @@ class DetailedGuideTest < ActionDispatch::IntegrationTest setup_and_visit_content_item("national_applicability_alternative_url_detailed_guide") assert_has_devolved_nations_component("Applies to England, Scotland and Wales", [ { - text: "Northern Ireland", + text: "Guidance for Northern Ireland", alternative_url: "http://www.dardni.gov.uk/news-dard-pa022-a-13-new-procedure-for", }, ]) diff --git a/test/integration/publication_test.rb b/test/integration/publication_test.rb index b4b552386..e63267d3e 100644 --- a/test/integration/publication_test.rb +++ b/test/integration/publication_test.rb @@ -78,15 +78,15 @@ class PublicationTest < ActionDispatch::IntegrationTest setup_and_visit_content_item("statistics_publication") assert_has_devolved_nations_component("Applies to England", [ { - text: "Northern Ireland", + text: "Publication for Northern Ireland", alternative_url: "http://www.dsdni.gov.uk/index/stats_and_research/stats-publications/stats-housing-publications/housing_stats.htm", }, { - text: "Scotland", + text: "Publication for Scotland", alternative_url: "http://www.scotland.gov.uk/Topics/Statistics/Browse/Housing-Regeneration/HSfS", }, { - text: "Wales", + text: "Publication for Wales", alternative_url: "http://wales.gov.uk/topics/statistics/headlines/housing2012/121025/?lang=en", }, ]) diff --git a/test/test_helper.rb b/test/test_helper.rb index cfbf7ccf2..51ee6c625 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -148,7 +148,7 @@ def assert_has_devolved_nations_component(text, nations = nil) within(".gem-c-devolved-nations") do assert page.has_text?(text) nations&.each do |nation| - assert page.has_link?("Guidance for #{nation[:text]}", href: nation[:alternative_url]) + assert page.has_link?(nation[:text], href: nation[:alternative_url]) end end end