Sha256: ffad8a41634629f3b83f3945cd158dfc721cb314eded02cfd796d40660174f0d

Contents?: true

Size: 348 Bytes

Versions: 27

Compression:

Stored size: 348 Bytes

Contents

require 'test_helper'

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

27 entries across 27 versions & 9 rubygems

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