Sha256: 4f006067b0b2b97b156d0089866e5b6dbc144c9212c9b8419099e325e1287518

Contents?: true

Size: 850 Bytes

Versions: 62

Compression:

Stored size: 850 Bytes

Contents

# frozen_string_literal: true

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 Warden::Test::Helpers, type: :system
  config.include Devise::Test::IntegrationHelpers, type: :system
  config.include LoginMacros, type: :system
  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 do
    Warden.test_reset!
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
renalware-core-2.0.110 spec/support/devise_spec_helper.rb
renalware-core-2.0.109 spec/support/devise_spec_helper.rb
renalware-core-2.0.108 spec/support/devise_spec_helper.rb
renalware-core-2.0.106 spec/support/devise_spec_helper.rb
renalware-core-2.0.105 spec/support/devise_spec_helper.rb
renalware-core-2.0.104 spec/support/devise_spec_helper.rb
renalware-core-2.0.103 spec/support/devise_spec_helper.rb
renalware-core-2.0.102 spec/support/devise_spec_helper.rb
renalware-core-2.0.101 spec/support/devise_spec_helper.rb
renalware-core-2.0.100 spec/support/devise_spec_helper.rb
renalware-core-2.0.99 spec/support/devise_spec_helper.rb
renalware-core-2.0.98 spec/support/devise_spec_helper.rb
renalware-core-2.0.97 spec/support/devise_spec_helper.rb
renalware-core-2.0.96 spec/support/devise_spec_helper.rb
renalware-core-2.0.95 spec/support/devise_spec_helper.rb
renalware-core-2.0.94 spec/support/devise_spec_helper.rb
renalware-core-2.0.93 spec/support/devise_spec_helper.rb
renalware-core-2.0.92 spec/support/devise_spec_helper.rb
renalware-core-2.0.91 spec/support/devise_spec_helper.rb
renalware-core-2.0.90 spec/support/devise_spec_helper.rb