X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8fb45ef0fddee05d8fa3829303f61226764bd91a..886712eaf02d5abe7e1e4f762c22293392a234af:/test/controllers/sessions_controller_test.rb diff --git a/test/controllers/sessions_controller_test.rb b/test/controllers/sessions_controller_test.rb index 4234bee70..71d6de184 100644 --- a/test/controllers/sessions_controller_test.rb +++ b/test/controllers/sessions_controller_test.rb @@ -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