test/strategy_test_case.rb in gitlab-omniauth-openid-connect-0.9.1 vs test/strategy_test_case.rb in gitlab-omniauth-openid-connect-0.10.0
- old
+ new
@@ -73,17 +73,19 @@
request.stubs(:params).returns({})
request.stubs(:cookies).returns({})
request.stubs(:env).returns({})
request.stubs(:scheme).returns({})
request.stubs(:ssl?).returns(false)
+ request.stubs(:path).returns('')
end
end
def strategy
@strategy ||= OmniAuth::Strategies::OpenIDConnect.new(DummyApp.new).tap do |strategy|
strategy.options.client_options.identifier = @identifier
strategy.options.client_options.secret = @secret
strategy.stubs(:request).returns(request)
strategy.stubs(:user_info).returns(user_info)
+ strategy.stubs(:script_name).returns('')
end
end
end