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

Version Path
rspeckled-0.0.30 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.29 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.28 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.27 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.26 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.25 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.24 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.23 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.22 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.21 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.20 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.19 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.18 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.17 lib/rspeckled/plugins/devise.rb