diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b65fcdd4..90b3fa2b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -188,7 +188,8 @@ module ApplicationHelper 'hidden' if Date.today > conference.end_date end - # TODO:Snap!Con: Replace this with a search for a conference logo. + # TODO-SNAPCON: Replace this with a search for a conference logo. + # TODO: If conference is defined, the alt text should be conference name. def nav_root_link_for(conference = nil) path = conference&.id.present? ? conference_path(conference) : root_path link_to( diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index 403c797d..759a8113 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -63,6 +63,11 @@ describe ApplicationHelper, type: :helper do end describe 'navigation title link' do + it 'should default to OSEM' do + ENV.delete('OSEM_NAME') + expect(nav_link_text(nil)).to match 'OSEM' + end + it 'should default to OSEM' do ENV.delete('OSEM_NAME') expect(nav_root_link_for(nil)).to include image_tag('snapcon_logo.png', alt: 'OSEM')