photomix/vendor/plugins/authlogic/test/authenticates_many_test.rb
2011-04-11 18:07:31 +08:00

16 lines
348 B
Ruby

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