Failing to test Devise with Capybara

前端 未结 3 1412
轻奢々
轻奢々 2021-01-02 01:12

I\'m building a Rails 3 app using Devise, with Capybara for UI testing. The following test is failing:

class AuthenticationTest < ActionController::Integ         


        
3条回答
  •  醉梦人生
    2021-01-02 01:53

    I had the same issue with a setup fairly similar to yours. In my case, switching to ActiveRecord sessions in the initializer solved the problem.

    Additionally, make sure you call @user.skip_confirmation! if you are using the "confirmable" module in devise.

提交回复
热议问题