mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 01:30:12 +01:00
get test running again for zentest > 4.0.0
also fix other bugs in the tests
This commit is contained in:
parent
ab9fa1fc46
commit
bde079a92b
28 changed files with 65 additions and 73 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue