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
"<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
# -------------------------------------