Attempt to fixup logo specs

This commit is contained in:
Michael Ball 2021-02-24 09:34:04 -08:00
parent d4a86acfd3
commit 1ca72dcf74
2 changed files with 6 additions and 8 deletions

View file

@ -221,6 +221,8 @@ GEM
haml (5.0.4) haml (5.0.4)
temple (>= 0.8.0) temple (>= 0.8.0)
tilt tilt
haml-lint (0.999.999)
haml_lint
haml-rails (1.0.0) haml-rails (1.0.0)
actionpack (>= 4.0.1) actionpack (>= 4.0.1)
activesupport (>= 4.0.1) activesupport (>= 4.0.1)
@ -703,8 +705,8 @@ DEPENDENCIES
geckodriver-helper geckodriver-helper
gravtastic gravtastic
guard-rspec guard-rspec
haml-lint
haml-rails haml-rails
haml_lint
iso-639 iso-639
jquery-datatables jquery-datatables
jquery-rails jquery-rails
@ -758,7 +760,6 @@ DEPENDENCIES
rqrcode rqrcode
rspec-activemodel-mocks rspec-activemodel-mocks
rspec-rails rspec-rails
rubocop
rubocop-rspec rubocop-rspec
ruby-oembed ruby-oembed
sass-rails (>= 4.0.2) sass-rails (>= 4.0.2)

View file

@ -65,19 +65,16 @@ describe ApplicationHelper, type: :helper do
describe 'navigation title link' do describe 'navigation title link' do
it 'should default to OSEM' do it 'should default to OSEM' do
ENV.delete('OSEM_NAME') ENV.delete('OSEM_NAME')
# TODO:Snap!Con: expect(nav_root_link_for(nil)).to match 'OSEM' expect(nav_root_link_for(nil)).to include image_tag('snapcon_logo.png', alt: 'OSEM')
expect(nav_root_link_for(nil)).to match image_tag('snapcon_logo.png')
end end
it 'should use the environment variable' do it 'should use the environment variable' do
ENV['OSEM_NAME'] = Faker::Company.name + "'" 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 include image_tag('snapcon_logo.png', alt: ENV['OSEM_NAME'])
expect(nav_root_link_for(nil)).to match image_tag('snapcon_logo.png')
end end
it 'should use the conference organization name' do 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(nil)).to include image_tag('snapcon_logo.png', alt: conference.title)
expect(nav_root_link_for(nil)).to match image_tag('snapcon_logo.png')
end end
end end
end end