Sha256: 03174cbc45c3ba66f23c9b3c192b25bff03f04b43bce2c30c3244ba0cdef9620

Contents?: true

Size: 422 Bytes

Versions: 50

Compression:

Stored size: 422 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper.rb'

module SessionTest
  class PerishabilityTest < ActiveSupport::TestCase
    def test_after_save
      ben = users(:ben)
      old_perishable_token = ben.perishable_token
      session = UserSession.create(ben)
      assert_not_equal old_perishable_token, ben.perishable_token
      
      drew = employees(:drew)
      assert UserSession.create(drew)
    end
  end
end

Version data entries

50 entries across 50 versions & 15 rubygems

Version Path
authlogic-2.1.11 test/session_test/perishability_test.rb
authlogic-2.1.10 test/session_test/perishability_test.rb
binarylogic-authlogic-2.1.0 test/session_test/perishability_test.rb
binarylogic-authlogic-2.1.1 test/session_test/perishability_test.rb
crankharder-authlogic-2.1.1 test/session_test/perishability_test.rb
jlecour-authlogic-2.1.2 test/session_test/perishability_test.rb
kschrader-authlogic-2.1.2 test/session_test/perishability_test.rb
kschrader-authlogic-2.1.3 test/session_test/perishability_test.rb
authlogic-2.1.8 test/session_test/perishability_test.rb
authlogic-2.1.7 test/session_test/perishability_test.rb
expertiza-authlogic-2.1.6.1 test/session_test/perishability_test.rb
wulffeld_authlogic-2.1.3 test/session_test/perishability_test.rb
authlogic-2.1.6 test/session_test/perishability_test.rb
lockbox_middleware-1.2.1 vendor/gems/authlogic-2.1.3/test/session_test/perishability_test.rb
Empact-authlogic-2.1.5 test/session_test/perishability_test.rb
authlogic-2.1.5 test/session_test/perishability_test.rb
authlogic-2.1.4 test/session_test/perishability_test.rb
Empact-authlogic-2.1.4 test/session_test/perishability_test.rb
namxam-authlogic-2.1.3.1 test/session_test/perishability_test.rb
drogus-authlogic-2.1.3 test/session_test/perishability_test.rb