From 38c10d326dcce4f8ea6e50aa859a0ac1d3f68ab3 Mon Sep 17 00:00:00 2001 From: CactusPuppy Date: Wed, 24 Feb 2021 20:55:30 -0800 Subject: [PATCH] Fix spec incorrectly testing for conference org names --- spec/helpers/application_helper_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 10aced29..b54a0bd2 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -75,7 +75,7 @@ describe ApplicationHelper, type: :helper do # TODO-SNAPCON: This is an indicator in a conference it should be the conference name. it 'should use the conference organization name' do - expect(nav_root_link_for(nil)).to include image_tag('snapcon_logo.png', alt: conference.organization.name) + expect(nav_root_link_for(conference)).to include image_tag('snapcon_logo.png', alt: conference.organization.name) end end @@ -91,7 +91,7 @@ describe ApplicationHelper, type: :helper do end it 'should use the conference organization name' do - expect(nav_link_text(nil)).to match conference.organization.name + expect(nav_link_text(conference)).to match conference.organization.name end end end