mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 07:38:45 -05:00
correct spec
This commit is contained in:
parent
afd1a3ac7b
commit
bb3725cfca
2 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,7 @@ describe Plugin::Instance do
|
|||
|
||||
plugin.auth_providers.count.should == 1
|
||||
auth_provider = plugin.auth_providers[0]
|
||||
auth_provider.type.should == :open_id
|
||||
auth_provider.authenticator.name.should == 'ubuntu'
|
||||
|
||||
# calls ensure_assets! make sure they are there
|
||||
plugin.assets.count.should == 2
|
||||
|
|
10
spec/fixtures/plugins/my_plugin/plugin.rb
vendored
10
spec/fixtures/plugins/my_plugin/plugin.rb
vendored
|
@ -3,8 +3,8 @@
|
|||
# version: 0.1
|
||||
# authors: Frank Zappa
|
||||
|
||||
auth_provider :open_id,
|
||||
:name => 'zappa',
|
||||
:identifier => 'https://zappa.com',
|
||||
:background_color => '#dd4814',
|
||||
:glyph => 'B'
|
||||
auth_provider :title => 'with Ubuntu',
|
||||
:authenticator => Auth::OpenIdAuthenticator.new('ubuntu','https://login.ubuntu.com', trusted: true),
|
||||
:message => 'Authenticating with Ubuntu (make sure pop up blockers are not enbaled)',
|
||||
:frame_width => 1000, # the frame size used for the pop up window, overrides default
|
||||
:frame_height => 800
|
||||
|
|
Loading…
Reference in a new issue