Fix specs for omniauth providers?
This commit is contained in:
parent
bc6b76fcc3
commit
37ffc1765d
2 changed files with 4 additions and 2 deletions
|
|
@ -50,7 +50,9 @@ class User < ApplicationRecord
|
||||||
else
|
else
|
||||||
[:database_authenticatable, :registerable,
|
[:database_authenticatable, :registerable,
|
||||||
:recoverable, :rememberable, :trackable, :validatable, :confirmable,
|
: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
|
end
|
||||||
|
|
||||||
devise(*devise_modules)
|
devise(*devise_modules)
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ feature Conference do
|
||||||
visit admin_conference_path(conference.short_title)
|
visit admin_conference_path(conference.short_title)
|
||||||
|
|
||||||
# expect(find('.navbar-brand')).to eq(conference.organization.name)
|
# 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
|
end
|
||||||
|
|
||||||
it_behaves_like 'add and update conference'
|
it_behaves_like 'add and update conference'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue