Sha256: fe13a5b31f39a30d486b84b61acba35f5dbea44281f1e68a4d74955338e24ae8

Contents?: true

Size: 364 Bytes

Versions: 27

Compression:

Stored size: 364 Bytes

Contents

require 'test_helper'

module SessionTest
  class UnauthorizedRecordTest < ActiveSupport::TestCase
    def test_credentials
      ben = users(:ben)
      session = UserSession.new
      session.credentials = [ben]
      assert_equal ben, session.unauthorized_record
      assert_equal({:unauthorized_record => "<protected>"}, session.credentials)
    end
  end
end

Version data entries

27 entries across 27 versions & 9 rubygems

Version Path
authlogic-3.4.6 test/session_test/unauthorized_record_test.rb
authlogic-3.4.5 test/session_test/unauthorized_record_test.rb
authlogic-3.4.4 test/session_test/unauthorized_record_test.rb
authlogic-3.4.3 test/session_test/unauthorized_record_test.rb
authlogic-3.4.2 test/session_test/unauthorized_record_test.rb
authlogic-3.4.1 test/session_test/unauthorized_record_test.rb
authlogic-3.4.0 test/session_test/unauthorized_record_test.rb
authlogic-3.3.0 test/session_test/unauthorized_record_test.rb
authlogic-3.2.0 test/session_test/unauthorized_record_test.rb
authlogic-3.1.3 test/session_test/unauthorized_record_test.rb
authlogic-3.1.2 test/session_test/unauthorized_record_test.rb
authlogic-3.1.1 test/session_test/unauthorized_record_test.rb
nulogy-authlogic-3.1.0.1 test/session_test/unauthorized_record_test.rb
Empact-authlogic-3.1.0 test/session_test/unauthorized_record_test.rb
authlogic-3.1.0 test/session_test/unauthorized_record_test.rb
Empact-authlogic-3.0.3 test/session_test/unauthorized_record_test.rb
antlypls-authlogic-3.0.3 test/session_test/unauthorized_record_test.rb
authlogic-3.0.3 test/session_test/unauthorized_record_test.rb
authlogic-3.0.2 test/session_test/unauthorized_record_test.rb
authlogic-3.0.1 test/session_test/unauthorized_record_test.rb