Sha256: ba31ad624862c9e0d8bc1b818adb23f95f67557694a0c38c7230e2153fd98e74

Contents?: true

Size: 657 Bytes

Versions: 7

Compression:

Stored size: 657 Bytes

Contents

##############################################################################
#                               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(:suite, :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

7 entries across 7 versions & 1 rubygems

Version Path
rspectacular-0.33.0 lib/rspectacular/plugins/devise.rb
rspectacular-0.31.0 lib/rspectacular/plugins/devise.rb
rspectacular-0.30.0 lib/rspectacular/plugins/devise.rb
rspectacular-0.29.0 lib/rspectacular/plugins/devise.rb
rspectacular-0.28.0 lib/rspectacular/plugins/devise.rb
rspectacular-0.27.0 lib/rspectacular/plugins/devise.rb
rspectacular-0.26.0 lib/rspectacular/plugins/devise.rb