Sha256: 84369ac285b0ef7e6c987b19912dd5eaa35b7113a6564e493869abb46b4a5433

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

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

class RestfulAuthenticationController
  attr_accessor :current_user

  def logout_killing_session!
    self.current_user = nil
  end
end

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

2 entries across 2 versions & 1 rubygems

Version Path
switch_user-0.9.1 spec/provider/restful_authentication_spec.rb
switch_user-0.9.0 spec/provider/restful_authrentication_spec.rb