Sha256: 8a184ed59149f7cd3861f3135155a667c7066c6a5039e6ac6de7245967d192de

Contents?: true

Size: 687 Bytes

Versions: 50

Compression:

Stored size: 687 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 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

50 entries across 50 versions & 1 rubygems

Version Path
renalware-core-2.0.67 spec/support/devise_spec_helper.rb
renalware-core-2.0.64 spec/support/devise_spec_helper.rb
renalware-core-2.0.63 spec/support/devise_spec_helper.rb
renalware-core-2.0.62 spec/support/devise_spec_helper.rb
renalware-core-2.0.61 spec/support/devise_spec_helper.rb
renalware-core-2.0.60 spec/support/devise_spec_helper.rb
renalware-core-2.0.58 spec/support/devise_spec_helper.rb
renalware-core-2.0.57 spec/support/devise_spec_helper.rb
renalware-core-2.0.56 spec/support/devise_spec_helper.rb
renalware-core-2.0.55 spec/support/devise_spec_helper.rb
renalware-core-2.0.54 spec/support/devise_spec_helper.rb
renalware-core-2.0.53 spec/support/devise_spec_helper.rb
renalware-core-2.0.52 spec/support/devise_spec_helper.rb
renalware-core-2.0.51 spec/support/devise_spec_helper.rb
renalware-core-2.0.50 spec/support/devise_spec_helper.rb
renalware-core-2.0.48 spec/support/devise_spec_helper.rb
renalware-core-2.0.47 spec/support/devise_spec_helper.rb
renalware-core-2.0.46 spec/support/devise_spec_helper.rb
renalware-core-2.0.45 spec/support/devise_spec_helper.rb
renalware-core-2.0.44 spec/support/devise_spec_helper.rb