Sha256: 81881acb73b8109b4ecccef5c52900c2721199cf94e46b249da78587bc6b5f82

Contents?: true

Size: 390 Bytes

Versions: 27

Compression:

Stored size: 390 Bytes

Contents

require 'test_helper'

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

27 entries across 27 versions & 9 rubygems

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