From d8ce3c298233dc372cc42a9e63de99c86cd78cdb Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Mon, 27 Jan 2020 22:54:03 -0800 Subject: [PATCH] Try to update spec file with image in navbar --- spec/helpers/application_helper_spec.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index cc0caeb9..edadc869 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -65,16 +65,19 @@ describe ApplicationHelper, type: :helper do describe 'navigation title link' do it 'should default to OSEM' do ENV.delete('OSEM_NAME') - expect(nav_root_link_for(nil)).to match 'OSEM' + # TODO:Snap!Con: expect(nav_root_link_for(nil)).to match 'OSEM' + expect(nav_root_link_for(nil)).to match image_tag('snapcon_logo.png') end it 'should use the environment variable' do ENV['OSEM_NAME'] = Faker::Company.name + "'" - expect(nav_root_link_for(nil)).to match h(ENV['OSEM_NAME']) + # expect(nav_root_link_for(nil)).to match h(ENV['OSEM_NAME']) + expect(nav_root_link_for(nil)).to match image_tag('snapcon_logo.png') end it 'should use the conference organization name' do - expect(nav_root_link_for(conference)).to match h(conference.organization.name) + # expect(nav_root_link_for(conference)).to match h(conference.organization.name) + expect(nav_root_link_for(nil)).to match image_tag('snapcon_logo.png') end end end