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

Version Path
rspeckled-0.0.54 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.53 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.52 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.51 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.50 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.49 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.48 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.47 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.46 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.45 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.44 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.43 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.42 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.41 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.40 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.39 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.38 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.37 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.36 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.35 lib/rspeckled/plugins/devise.rb