Sha256: ccfc64823c871a8d1ff66c78cdbbc29b1f19f35e6dfa2c6fdf005376e6873367

Contents?: true

Size: 417 Bytes

Versions: 14

Compression:

Stored size: 417 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

14 entries across 14 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.33 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.32 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.31 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.30 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.29 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.28 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.27 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.26 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.25 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.24 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.23 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.22 vendor/plugins/authlogic/test/session_test/perishability_test.rb
refinerycms-0.9.6.21 vendor/plugins/authlogic/test/session_test/perishability_test.rb