Commit e0eeace3 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Specify base controller for Doorkeeper

This will make sure the `ApplicantionController#can?` method is
available for views rendering menus based on the current user's abilities.
parent f0add7bc
......@@ -103,4 +103,6 @@ Doorkeeper.configure do
# Some applications require dynamic query parameters on their request_uri
# set to true if you want this to be allowed
# wildcard_redirect_uri false
base_controller 'ApplicationController'
end
......@@ -34,6 +34,8 @@ describe Oauth::AuthorizationsController do
end
context 'with valid params' do
render_views
it 'returns 200 code and renders view' do
get :new, params
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment