Sha256: 318e559d098104b0f675f2911d255ff78c9930dd46c81024fd6a491f4a89af01

Contents?: true

Size: 688 Bytes

Versions: 3

Compression:

Stored size: 688 Bytes

Contents

# frozen_string_literal: true

##############################################################################
#                               Devise Plugin
##############################################################################

begin
  require 'devise'

  Devise.stretches = 1

  RSpec.configure do |config|
    config.include Devise::TestHelpers,   :type => :controller
    config.include Warden::Test::Helpers, :type => :feature

    config.before(:all, :type => :feature) do |_example|
      Warden.test_mode!
    end

    config.before(:each, :type => :controller) do |_example|
      @request.env['devise.mapping'] = Devise.mappings[:user]
    end
  end
rescue LoadError
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspeckled-0.0.33 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.32 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.31 lib/rspeckled/plugins/devise.rb