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
novelys_authlogic-2.1.6 test/session_test/perishability_test.rb
novelys_authlogic-2.1.5 test/session_test/perishability_test.rb
novelys_authlogic-2.1.4 test/session_test/perishability_test.rb
novelys_authlogic-2.1.3 test/session_test/perishability_test.rb
ginst-2009.12.8 vendor/plugins/authlogic/test/session_test/perishability_test.rb
skippy-authlogic-2.1.3 test/session_test/perishability_test.rb
ginst-2009.11.24 vendor/plugins/authlogic/test/session_test/perishability_test.rb
ginst-2009.11.23 vendor/plugins/authlogic/test/session_test/perishability_test.rb
a_b-0.1.1 vendor/authlogic/test/session_test/perishability_test.rb
a_b-0.1.0 vendor/authlogic/test/session_test/perishability_test.rb
authlogic-2.1.3 test/session_test/perishability_test.rb
ginst-2.0.1 vendor/plugins/authlogic/test/session_test/perishability_test.rb
ginst-2.0.0 vendor/plugins/authlogic/test/session_test/perishability_test.rb
authlogic-2.1.2 test/session_test/perishability_test.rb
authlogic-2.1.0 test/session_test/perishability_test.rb
authlogic-2.1.1 test/session_test/perishability_test.rb
authlogic-2.0.11 test/session_test/perishability_test.rb
authlogic-2.0.12 test/session_test/perishability_test.rb
authlogic-2.0.1 test/session_test/perishability_test.rb
authlogic-2.0.13 test/session_test/perishability_test.rb