undefined method 'env' for nil:NilClass

前端 未结 2 1925
一向
一向 2020-12-30 03:20

This is what my spec file looks like: spec/api/v1/projects_spec.rb

require \"spec_helper\"

describe \"/api/v1/projects\", :type => :api do
          


        
相关标签:
2条回答
  • 2020-12-30 03:52

    You're still including Devise::TestHelpers somewhere. Check and see what "spec_helper" is loading.

    0 讨论(0)
  • 2020-12-30 04:03

    Instead of just including the Devise Test Helper, you can specify it's type, so that it's not included in routing spec:

      config.include Devise::TestHelpers, :type => :helper
      config.include Devise::TestHelpers, :type => :controller
    
    0 讨论(0)
提交回复
热议问题