rails testing with devise-defined current_user

后端 未结 0 950
我寻月下人不归
我寻月下人不归 2021-01-31 15:25

A rails controller test is invoking an action where its form calls

  f.hidden_field :user_id, value: current_user.id

the controllerTest attempts

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