pull/6827/head
Markus Kahl 11 years ago
parent 2aee56bfbb
commit c189aacf3d
  1. 11
      spec/requests/openid_connect_spec.rb

@ -66,6 +66,17 @@ describe "OpenID Connect" do
# Since the test is not supposed to make an actual call it is be stubbed too. # Since the test is not supposed to make an actual call it is be stubbed too.
OpenIDConnect::AccessToken.any_instance.stub(:userinfo!).and_return( OpenIDConnect::AccessToken.any_instance.stub(:userinfo!).and_return(
OpenIDConnect::ResponseObject::UserInfo.new(user_info)) OpenIDConnect::ResponseObject::UserInfo.new(user_info))
Setting.stub(:plugin_openproject_openid_connect).and_return(
{
"providers" => {
"heroku" => {
"identifier" => "does not",
"secret" => "matter"
}
}
}
)
end end
after(:all) do after(:all) do

Loading…
Cancel
Save