changed from nd id=... to nd ref=...

This commit is contained in:
Frederik Ramm 2007-08-31 22:33:27 +00:00
parent 3e18c51695
commit 6d07f5661a
2 changed files with 4 additions and 4 deletions

View file

@ -49,7 +49,7 @@ class WayControllerTest < Test::Unit::TestCase
basic_authorization "test@openstreetmap.org", "test"
# create a way with pre-existing nodes
content "<osm><way><nd id='#{nid1}'/><nd id='#{nid2}'/><tag k='test' v='yes' /></way></osm>"
content "<osm><way><nd ref='#{nid1}'/><nd ref='#{nid2}'/><tag k='test' v='yes' /></way></osm>"
put :create
# hope for success
assert_response :success,
@ -80,7 +80,7 @@ class WayControllerTest < Test::Unit::TestCase
basic_authorization "test@openstreetmap.org", "test"
# create a way with non-existing node
content "<osm><way><nd id='0'/><tag k='test' v='yes' /></way></osm>"
content "<osm><way><nd ref='0'/><tag k='test' v='yes' /></way></osm>"
put :create
# expect failure
assert_response :precondition_failed,