Cleanup the Relation.from_xml to come in line with the Way and Node versions. Includes tests. Bug fix for the previous tests.

This commit is contained in:
Shaun McDonald 2009-06-10 17:17:03 +00:00
parent 3b063cfa19
commit 37df03a043
5 changed files with 78 additions and 21 deletions

View file

@ -94,6 +94,6 @@ class WayTest < ActiveSupport::TestCase
message_update = assert_raise(OSM::APIBadXMLError) {
Way.from_xml(no_text, false)
}
assert_match /Must specify a string with one or more characters/, message_create.message
assert_match /Must specify a string with one or more characters/, message_update.message
end
end