Sha256: e0de0dc884afa0fc7ef4014c75b06888e2e7e633aca7467b586ffa1fcfab1c7b

Contents?: true

Size: 377 Bytes

Versions: 50

Compression:

Stored size: 377 Bytes

Contents

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

class AuthenticatesManyTest < ActiveSupport::TestCase
  def test_scoping
    zack = users(:zack)
    ben = users(:ben)
    binary_logic = companies(:binary_logic)
    set_session_for(zack)
    
    assert !binary_logic.user_sessions.find
    
    set_session_for(ben)
    
    assert binary_logic.user_sessions.find
  end
end

Version data entries

50 entries across 50 versions & 15 rubygems

Version Path
authlogic-2.1.11 test/authenticates_many_test.rb
authlogic-2.1.10 test/authenticates_many_test.rb
binarylogic-authlogic-2.1.0 test/authenticates_many_test.rb
binarylogic-authlogic-2.1.1 test/authenticates_many_test.rb
crankharder-authlogic-2.1.1 test/authenticates_many_test.rb
jlecour-authlogic-2.1.2 test/authenticates_many_test.rb
kschrader-authlogic-2.1.2 test/authenticates_many_test.rb
kschrader-authlogic-2.1.3 test/authenticates_many_test.rb
authlogic-2.1.8 test/authenticates_many_test.rb
authlogic-2.1.7 test/authenticates_many_test.rb
expertiza-authlogic-2.1.6.1 test/authenticates_many_test.rb
wulffeld_authlogic-2.1.3 test/authenticates_many_test.rb
authlogic-2.1.6 test/authenticates_many_test.rb
lockbox_middleware-1.2.1 vendor/gems/authlogic-2.1.3/test/authenticates_many_test.rb
Empact-authlogic-2.1.5 test/authenticates_many_test.rb
authlogic-2.1.5 test/authenticates_many_test.rb
authlogic-2.1.4 test/authenticates_many_test.rb
Empact-authlogic-2.1.4 test/authenticates_many_test.rb
namxam-authlogic-2.1.3.1 test/authenticates_many_test.rb
drogus-authlogic-2.1.3 test/authenticates_many_test.rb