test/integration/authenticatable_test.rb in devise-0.4.2 vs test/integration/authenticatable_test.rb in devise-0.4.3

- old
+ new

@@ -182,6 +182,14 @@ test 'allows session to be set by a given scope' do sign_in_as_user visit 'users/index' assert_equal "Cart", @controller.user_session[:cart] end + + test 'destroyed account is logged out' do + sign_in_as_user + visit 'users/index' + User.destroy_all + visit 'users/index' + assert_redirected_to '/users/sign_in?unauthenticated=true' + end end