From eed4ed5d4bd5147a5df68d4d092e3006ac0ff900 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 16 Aug 2023 21:19:05 +0200 Subject: [PATCH] Add test for putting IDs on nav entries --- spec/helpers/bootstrap_helper_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/helpers/bootstrap_helper_spec.rb b/spec/helpers/bootstrap_helper_spec.rb index b996f162..4cacecd7 100644 --- a/spec/helpers/bootstrap_helper_spec.rb +++ b/spec/helpers/bootstrap_helper_spec.rb @@ -42,6 +42,13 @@ describe BootstrapHelper, :type => :helper do eq('') ) end + + it 'should put an ID on the entry an id if given' do + allow(self).to receive(:current_page?).and_return(false) + expect(nav_entry('Example', '/example', id: "testing")).to( + eq('') + ) + end end describe "#list_group_item" do