Sha256: 069bf1091e0453a4b451f95637ed0baa17e1ec07d107aaea81f9d4545a88c9f2

Contents?: true

Size: 557 Bytes

Versions: 8

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

Devise.stretches = 1

RSpec.configure do |config|
  config.include Devise::Test::ControllerHelpers,  :type => :controller

  [:system, :feature, :request].each do |type|
    config.include Devise::Test::IntegrationHelpers, :type => type
    config.include Warden::Test::Helpers,            :type => type

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rspeckled-1.0.1 lib/rspeckled/plugins/devise.rb
rspeckled-1.0.0 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.64 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.63 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.62 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.61 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.60 lib/rspeckled/plugins/devise.rb
rspeckled-0.0.59 lib/rspeckled/plugins/devise.rb