Testing pundit for create action with a third parameter

后端 未结 0 1590
迷失自我
迷失自我 2020-12-04 16:50

The problem in testing a create action is that the object is not already created. Thus a class policy initialisation could state:

def initialize(user, promot         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题