test "login logout user is not online" do
get :login, :id=>1
before = User.find(1).is_online
get :logout, :id=>1
after = User.find(1).is_online
puts before
puts after
assert before == 1
assert after == 0
конец
the output is
1
0
<false> is not true.
test/functional/users_controller_test.rb:22:in `test_login_logout_user_is_not_online'