mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 13:58:49 +01:00
Fixed failing tests
- Some fixtures added by Erik Ordway broke tests
- message:// links had an edge case I broke with 68701ada
- One test had a hard-coded id that changed
Closes #1019
This commit is contained in:
parent
68701adaca
commit
a022f449c1
7 changed files with 9 additions and 45 deletions
|
|
@ -52,8 +52,9 @@ class UsersControllerTest < ActionController::TestCase
|
|||
def test_destroy_user
|
||||
login_as :admin_user
|
||||
@no_users_before = User.find(:all).size
|
||||
xhr :post, :destroy, :id => users(:ldap_user).id.to_param
|
||||
assert_rjs :page, "user-3", :remove
|
||||
user_id = users(:ldap_user).id
|
||||
xhr :post, :destroy, :id => user_id.to_param
|
||||
assert_rjs :page, "user-#{user_id}", :remove
|
||||
assert_equal @no_users_before-1, User.find(:all).size
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue