Fix spec incorrectly testing for conference org names

This commit is contained in:
CactusPuppy 2021-02-24 20:55:30 -08:00
parent 0d4823db38
commit 38c10d326d
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -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