Sha256: c5790120b6e66f7a07e76b9c0d985ef0c690e8b7182f7138fa00b03c14da552b

Contents?: true

Size: 423 Bytes

Versions: 16

Compression:

Stored size: 423 Bytes

Contents

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

module SessionTests
  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

16 entries across 16 versions & 1 rubygems

Version Path
authlogic-1.3.2 test/session_tests/perishability_test.rb
authlogic-1.2.2 test/session_tests/perishability_test.rb
authlogic-1.3.0 test/session_tests/perishability_test.rb
authlogic-1.2.1 test/session_tests/perishability_test.rb
authlogic-1.3.1 test/session_tests/perishability_test.rb
authlogic-1.4.0 test/session_tests/perishability_test.rb
authlogic-1.4.1 test/session_tests/perishability_test.rb
authlogic-1.3.4 test/session_tests/perishability_test.rb
authlogic-1.3.5 test/session_tests/perishability_test.rb
authlogic-1.3.6 test/session_tests/perishability_test.rb
authlogic-1.3.9 test/session_tests/perishability_test.rb
authlogic-1.3.7 test/session_tests/perishability_test.rb
authlogic-1.3.8 test/session_tests/perishability_test.rb
authlogic-1.3.3 test/session_tests/perishability_test.rb
authlogic-1.4.3 test/session_tests/perishability_test.rb
authlogic-1.4.2 test/session_tests/perishability_test.rb