Sha256: 63a3e78ee748a260124fef7ee7858219b2343ddb34e02b73cb76370b947c49c1
Contents?: true
Size: 687 Bytes
Versions: 14
Compression:
Stored size: 687 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
14 entries across 14 versions & 1 rubygems