module Devise::Test

Devise::Test::IntegrationHelpers is a helper module for facilitating authentication on Rails integration tests to bypass the required steps for signin in or signin out a record.

Examples

class PostsTest < ActionDispatch::IntegrationTest
  include Devise::Test::IntegrationHelpers

  test 'authenticated users can see posts' do
    sign_in users(:bob)

    get '/posts'
    assert_response :success
  end
end