Fix specs for omniauth providers?

This commit is contained in:
Michael Ball 2020-02-04 23:50:28 -08:00
parent bc6b76fcc3
commit 37ffc1765d
2 changed files with 4 additions and 2 deletions

View file

@ -50,7 +50,9 @@ class User < ApplicationRecord
else
[:database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable, :confirmable,
:omniauthable, omniauth_providers: [:suse, :google, :facebook, :github, :discourse]]
:omniauthable,
# omniauth_providers: [:suse, :google, :facebook, :github, :discourse]
omniauth_providers: [:google, :discourse]
end
devise(*devise_modules)

View file

@ -99,7 +99,7 @@ feature Conference do
visit admin_conference_path(conference.short_title)
# expect(find('.navbar-brand')).to eq(conference.organization.name)
expect(find('.navbar-brand')).to eq(image_tag('snapcon_logo.png'))
expect(find('.navbar-brand img')['alt']).to have_content conference.organization.name
end
it_behaves_like 'add and update conference'