All API 0.6 functional tests now pass.
This commit is contained in:
parent
1e5782f579
commit
3549d8900f
2 changed files with 3 additions and 3 deletions
|
@ -222,7 +222,7 @@ class Way < ActiveRecord::Base
|
|||
def create_with_history(user)
|
||||
check_create_consistency(self, user)
|
||||
if !self.preconditions_ok?
|
||||
raise OSM::APIPreconditionsFailedError.new
|
||||
raise OSM::APIPreconditionFailedError.new
|
||||
end
|
||||
self.version = 0
|
||||
self.visible = true
|
||||
|
|
|
@ -140,8 +140,8 @@ class WayControllerTest < Test::Unit::TestCase
|
|||
"<nd ref='#{nid1}'/></way></osm>"
|
||||
put :create
|
||||
# expect failure
|
||||
assert_response :precondition_failed,
|
||||
"way upload to closed changeset did not return 'precondition failed'"
|
||||
assert_response :conflict,
|
||||
"way upload to closed changeset did not return 'conflict'"
|
||||
end
|
||||
|
||||
# -------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue