Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rails controller spec helpers for warden
branch: master
Failed to load latest commit information.
lib initial commit
README.md update readme with sign_in method example
warden-rspec-rails.gemspec initial commit

README.md

What

Rails controller spec helpers for warden. If you're using warden without devise in rails, due to how action controller sets up the test environment, custom test setup code is necessary.

Usage

# Gemfile
group :test do
  gem 'warden-rspec-rails'
end

# spec_helper.rb
RSpec.configure do |c|
  c.include Warden::Test::ControllerHelpers, type: :controller

  def sign_in(user)
    warden.set_user(user)
  end
end

Thanks

Something went wrong with that request. Please try again.