mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-26 00:54:08 +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
|
#for will_paginate plugin
|
||||||
cattr_accessor :per_page
|
cattr_accessor :per_page
|
||||||
@@per_page = 1
|
@@per_page = 5
|
||||||
|
|
||||||
def validate
|
def validate
|
||||||
unless Tracks::Config.auth_schemes.include?(auth_type)
|
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