get test running again for zentest > 4.0.0

also fix other bugs in the tests
This commit is contained in:
Reinier Balt 2009-08-05 20:35:31 +02:00
parent ab9fa1fc46
commit bde079a92b
28 changed files with 65 additions and 73 deletions

View file

@ -84,7 +84,7 @@ class UsersXmlApiTest < ActionController::IntegrationTest
end
def test_get_user_as_xml
get "/users/#{users(:other_user).login}.xml", {}, basic_auth_headers()
get "/users/#{users(:other_user).id}.xml", {}, basic_auth_headers()
assert_response :success
assert_tag :tag => "user"
assert_no_tag :tag => "password"
@ -104,4 +104,4 @@ class UsersXmlApiTest < ActionController::IntegrationTest
assert_response_and_body 404, "Expected post format is valid xml like so: <request><login>username</login><password>abc123</password></request>."
end
end
end