Sha256: 07a335533bdd3d2ec61bb165af9e9fbbab97b7ef5c60cf38eaf5d0bd39e3a93a

Contents?: true

Size: 388 Bytes

Versions: 6

Compression:

Stored size: 388 Bytes

Contents

require 'test_helper'

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

      drew = employees(:drew)
      refute UserSession.create(drew).new_session?
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
authlogic-4.0.1 test/session_test/perishability_test.rb
authlogic-4.0.0 test/session_test/perishability_test.rb
authlogic-3.8.0 test/session_test/perishability_test.rb
authlogic-3.7.0 test/session_test/perishability_test.rb
authlogic-3.6.1 test/session_test/perishability_test.rb
authlogic-3.6.0 test/session_test/perishability_test.rb