]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/sessions_controller_test.rb
Show unredacted element history
[rails.git] / test / controllers / sessions_controller_test.rb
index 4234bee70b7e599c4555ec5ea343c13b18ea77cb..71d6de184f0f53f6cf4d4bbe1aed1153732021ef 100644 (file)
@@ -88,10 +88,7 @@ class SessionsControllerTest < ActionDispatch::IntegrationTest
     user = build(:user, :pending)
     post user_new_path, :params => { :user => user.attributes }
     post user_save_path, :params => { :read_ct => 1, :read_tou => 1 }
-
-    assert_difference "User.find_by(:email => user.email).tokens.count", -1 do
-      post logout_path
-    end
+    post logout_path
     assert_response :redirect
     assert_redirected_to root_path
   end