From e131ecb80215d4d5b8e58110a8534b06a10a1914 Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 25 Apr 2022 10:34:58 +0100 Subject: [PATCH] Extract method and add tests --- .../primary_navigation_component.html.erb | 2 +- app/components/primary_navigation_component.rb | 4 ++++ .../primary_navigation_component_spec.rb | 16 +++++++++++++--- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/app/components/primary_navigation_component.html.erb b/app/components/primary_navigation_component.html.erb index b889d9122..0bccaaf81 100644 --- a/app/components/primary_navigation_component.html.erb +++ b/app/components/primary_navigation_component.html.erb @@ -2,7 +2,7 @@