当我尝试用RSpec编写测试时,我得到一个错误
CanCan::AuthorizationNotPerformed:
This action failed the check_authorization because it does not authorize_resource. Add skip_authorization_check to bypass this check.尽管配置了CanCanCan并且控制器具有
before_action: doorkeeper_authorize!只有当我在控制器中指定even时,测试才能通过
skip_authorization_check发布于 2017-04-17 02:47:12
有必要在CanCanCan授权的配置中添加一个操作
https://stackoverflow.com/questions/43440179
复制相似问题