- def test_soft_destroy_revokes_oauth1_tokens
- user = create(:user)
- access_token = create(:access_token, :user => user)
- assert_equal 1, user.oauth_tokens.authorized.count
-
- user.soft_destroy
-
- assert_equal 0, user.oauth_tokens.authorized.count
- access_token.reload
- assert_predicate access_token, :invalidated?
- end
-