diff --git a/spec/components/plugin/instance_spec.rb b/spec/components/plugin/instance_spec.rb index bf019cbf8..6ad7c81f2 100644 --- a/spec/components/plugin/instance_spec.rb +++ b/spec/components/plugin/instance_spec.rb @@ -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 diff --git a/spec/fixtures/plugins/my_plugin/plugin.rb b/spec/fixtures/plugins/my_plugin/plugin.rb index 718f23649..92468f3c5 100644 --- a/spec/fixtures/plugins/my_plugin/plugin.rb +++ b/spec/fixtures/plugins/my_plugin/plugin.rb @@ -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