Sha256: af945babcf55eb97d78196944ad991249f6785b463b1f9f7df1cfb8760756210
Contents?: true
Size: 708 Bytes
Versions: 21
Compression:
Stored size: 708 Bytes
Contents
# frozen_string_literal: true ############################################################################## # Devise Plugin ############################################################################## begin require 'devise' Devise.stretches = 1 RSpec.configure do |config| config.include Devise::Test::ControllerHelpers, :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
21 entries across 21 versions & 1 rubygems