Why is my RSpec not loading Devise::Test::ControllerHelpers?

前端 未结 3 1451
失恋的感觉
失恋的感觉 2020-12-14 00:07

I\'m using Rails 5, and Devise 3.5.1.

Going through a nice (older) book about creating/testing an API, which uses Devise authentication. It was written before Rails

3条回答
  •  萌比男神i
    2020-12-14 00:38

    In the spec_helper.rb add:

    config.include Devise::Test::ControllerHelpers, :type => :controller
    

提交回复
热议问题