Added patch by Eric to fix users_controller_test. Fixes #735.

<http://dev.rousette.org.uk/ticket/735>
This commit is contained in:
bsag 2008-06-15 10:38:58 +01:00
parent c1109b3fb3
commit 1b00a314ae
2 changed files with 10 additions and 10 deletions

View file

@ -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