Sha256: 90f3c750caa3917ac537fcb84a7c7a7a596e2b3cf88af4b2d70e2f2ee40fb05e

Contents?: true

Size: 662 Bytes

Versions: 16

Compression:

Stored size: 662 Bytes

Contents

require "devise"
require_relative "./login_macros"

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

  config.include Warden::Test::Helpers, type: :feature
  config.include LoginMacros, type: :feature

  config.include Warden::Test::Helpers, type: :request
  config.include LoginMacros, type: :request

  config.before(:each, type: :controller) do
    login_as_super_admin
  end

  config.before(:each, type: :request) do
    login_as_super_admin
  end

  config.before :suite do
    Warden.test_mode!
  end

  config.after :each do
    Warden.test_reset!
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.rc10 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.rc9 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.rc8 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.rc7 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.rc6 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.rc5 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.rc4 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.rc3 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.rc1 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.beta12 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.beta11 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.beta10 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.beta9 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.beta8 spec/support/devise_spec_helper.rb
renalware-core-2.0.0.pre.beta7 spec/support/devise_spec_helper.rb