mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -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
|
plugin.auth_providers.count.should == 1
|
||||||
auth_provider = plugin.auth_providers[0]
|
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
|
# calls ensure_assets! make sure they are there
|
||||||
plugin.assets.count.should == 2
|
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
|
# version: 0.1
|
||||||
# authors: Frank Zappa
|
# authors: Frank Zappa
|
||||||
|
|
||||||
auth_provider :open_id,
|
auth_provider :title => 'with Ubuntu',
|
||||||
:name => 'zappa',
|
:authenticator => Auth::OpenIdAuthenticator.new('ubuntu','https://login.ubuntu.com', trusted: true),
|
||||||
:identifier => 'https://zappa.com',
|
:message => 'Authenticating with Ubuntu (make sure pop up blockers are not enbaled)',
|
||||||
:background_color => '#dd4814',
|
:frame_width => 1000, # the frame size used for the pop up window, overrides default
|
||||||
:glyph => 'B'
|
:frame_height => 800
|
||||||
|
|
Loading…
Reference in a new issue