mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
Added patch by Eric to fix users_controller_test. Fixes #735.
<http://dev.rousette.org.uk/ticket/735>
This commit is contained in:
parent
c1109b3fb3
commit
1b00a314ae
2 changed files with 10 additions and 10 deletions
|
|
@ -38,7 +38,7 @@ class UsersControllerTest < Test::Rails::TestCase
|
|||
def test_destroy_user
|
||||
login_as :admin_user
|
||||
@no_users_before = User.find(:all).size
|
||||
xhr :post, :destroy, :id => 3
|
||||
xhr :post, :destroy, :id => users(:ldap_user).to_param
|
||||
assert_rjs :page, "user-3", :remove
|
||||
assert_equal @no_users_before-1, User.find(:all).size
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue