add testcase for deleting a user. Resolves #734

This commit is contained in:
Reinier Balt 2008-12-03 20:53:50 +01:00
parent 3ddabd20d1
commit 539b4f96a1
2 changed files with 8 additions and 1 deletions

View file

@ -124,7 +124,7 @@ class User < ActiveRecord::Base
#for will_paginate plugin
cattr_accessor :per_page
@@per_page = 1
@@per_page = 5
def validate
unless Tracks::Config.auth_schemes.include?(auth_type)

View file

@ -0,0 +1,7 @@
setup :fixtures => :all
login :as => 'admin'
open '/users'
assert_text_present "John Deere"
click "//tr[@id='user-3']//img"
assert_confirmation "Warning: this will delete user 'john', all their actions, contexts, project and notes. Are you sure that you want to continue?"
wait_for_text_not_present "John Deere"