Sha256: c92f5caef0ad57403277f83ee4c898c8b6ad26b38fbb62996c35036493e5ed46

Contents?: true

Size: 470 Bytes

Versions: 10

Compression:

Stored size: 470 Bytes

Contents

require 'spec_helper'
require 'switch_user/provider/restful_authentication'

class RestfulAuthenticationController < TestController
  attr_accessor :current_user

  def logout_killing_session!
    self.current_user = nil
  end
end

RSpec.describe SwitchUser::Provider::RestfulAuthentication do
  let(:controller) { RestfulAuthenticationController.new }
  let(:provider) { SwitchUser::Provider::RestfulAuthentication.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/restful_authentication_spec.rb
switch_user-1.4.0 spec/provider/restful_authentication_spec.rb
switch_user-1.3.1 spec/provider/restful_authentication_spec.rb
switch_user-1.3.0 spec/provider/restful_authentication_spec.rb
switch_user-1.2.1 spec/provider/restful_authentication_spec.rb
switch_user-1.2.0 spec/provider/restful_authentication_spec.rb
switch_user-1.1.0 spec/provider/restful_authentication_spec.rb
switch_user-1.0.2 spec/provider/restful_authentication_spec.rb
switch_user-1.0.1 spec/provider/restful_authentication_spec.rb
switch_user-1.0.0 spec/provider/restful_authentication_spec.rb