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.
This commit is contained in:
parent
4371f84564
commit
417e3ba8e3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue