mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
add testcase for deleting a user. Resolves #734
This commit is contained in:
parent
3ddabd20d1
commit
539b4f96a1
2 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
7
test/selenium/users/delete_user.rsel
Normal file
7
test/selenium/users/delete_user.rsel
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue