# expect failure
assert_response :precondition_failed,
"way upload with invalid node did not return 'precondition failed'"
# expect failure
assert_response :precondition_failed,
"way upload with invalid node did not return 'precondition failed'"
- assert_equal "Precondition failed: Way requires the node with id 0, which either does not exist, or is not visible.", @response.body
+ assert_equal "Precondition failed: Way requires the nodes with id in (0), which either do not exist, or are not visible.", @response.body
put :update, :id => current_ways(:visible_way).id
assert_response :bad_request,
"adding a duplicate tag to a way should fail with 'bad request'"
put :update, :id => current_ways(:visible_way).id
assert_response :bad_request,
"adding a duplicate tag to a way should fail with 'bad request'"
put :update, :id => current_ways(:visible_way).id
assert_response :bad_request,
"adding new duplicate tags to a way should fail with 'bad request'"
put :update, :id => current_ways(:visible_way).id
assert_response :bad_request,
"adding new duplicate tags to a way should fail with 'bad request'"
put :create
assert_response :bad_request,
"adding new duplicate tags to a way should fail with 'bad request'"
put :create
assert_response :bad_request,
"adding new duplicate tags to a way should fail with 'bad request'"