0
0
Fork 0

Fix broken spec for about/links view partial (#2586)

This commit is contained in:
Matt Jankowski 2017-04-28 10:45:24 -04:00 committed by Eugen Rochko
parent 71e73e36cd
commit 9262f6968b
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ describe 'about/_links.html.haml' do
instance_presenter = double(:instance_presenter, open_registrations: true)
assign(:instance_presenter, instance_presenter)
allow(view).to receive(:user_signed_in?).and_return(true)
render
render 'about/links', instance: InstancePresenter.new
expect(rendered).to have_content(I18n.t('about.get_started'))
expect(rendered).not_to have_content(I18n.t('auth.login'))
@ -17,7 +17,7 @@ describe 'about/_links.html.haml' do
instance_presenter = double(:instance_presenter, open_registrations: true)
assign(:instance_presenter, instance_presenter)
allow(view).to receive(:user_signed_in?).and_return(false)
render
render 'about/links', instance: InstancePresenter.new
expect(rendered).to have_content(I18n.t('about.get_started'))
expect(rendered).to have_content(I18n.t('auth.login'))