Sha256: b2b6801191903d73a10663877a9712f8a87acda2177904157b7e0c09803bf44b

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

if defined?(Warden)
  include Warden::Test::Helpers
  Warden.test_mode!
end

if defined?(Devise)
  RSpec.configure do |config|
    config.before(:each, type: :controller) do
      @request.env['devise.mapping'] = Devise.mappings[:harpiya_user]
    end

    config.include Devise::Test::ControllerHelpers, type: :controller

    config.include Warden::Test::Helpers
    config.before :suite do
      Warden.test_mode!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harpiya_dev_tools-0.1.8 lib/harpiya_dev_tools/rspec/support/devise.rb