Sha256: 4ebad71fa30b8aea51300c94743561e8b08711c95d237a5e2c479e51b15ad42a

Contents?: true

Size: 440 Bytes

Versions: 10

Compression:

Stored size: 440 Bytes

Contents

require 'spec_helper'
require 'switch_user/provider/sorcery'

class SorceryController < TestController
  def logout
    @user = nil
    reset_session
  end

  def auto_login(user)
    @user = user
  end

  def current_user
    @user
  end
end

RSpec.describe SwitchUser::Provider::Sorcery do
  let(:controller) { SorceryController.new }
  let(:provider) { SwitchUser::Provider::Sorcery.new(controller) }

  it_behaves_like "a provider"
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
switch_user-1.5.0 spec/provider/sorcery_spec.rb
switch_user-1.4.0 spec/provider/sorcery_spec.rb
switch_user-1.3.1 spec/provider/sorcery_spec.rb
switch_user-1.3.0 spec/provider/sorcery_spec.rb
switch_user-1.2.1 spec/provider/sorcery_spec.rb
switch_user-1.2.0 spec/provider/sorcery_spec.rb
switch_user-1.1.0 spec/provider/sorcery_spec.rb
switch_user-1.0.2 spec/provider/sorcery_spec.rb
switch_user-1.0.1 spec/provider/sorcery_spec.rb
switch_user-1.0.0 spec/provider/sorcery_spec.rb