Fixed up way controller tests for API 0.6.

This commit is contained in:
Matt Amos 2008-10-13 15:40:32 +00:00
parent fb5f39f19a
commit 1e5782f579
3 changed files with 38 additions and 10 deletions

View file

@ -68,7 +68,7 @@ class WayController < ApplicationController
way = Way.find(params[:id])
new_way = Way.from_xml(request.raw_post)
if new_way and new_way.id == way.id
way.delete_with_history(@user)
way.delete_with_history(new_way, @user)
# if we get here, all is fine, otherwise something will catch below.
render :nothing => true