Commit graph

33 commits

Author SHA1 Message Date
Tom Hughes
32bdd65b49 Sort tags to make comparision stable 2013-06-30 22:41:49 +01:00
Matt Amos
8523f53099 Added a test for trac ticket 4471, and fixed the issue. 2012-09-21 09:07:21 +01:00
Tom Hughes
90e46a58de Add routing tests for all supported routes 2012-03-09 19:49:44 +00:00
Peter Gray
95d899786a Refactor bounding box code
Moved duplicated code into the BoundingBox class, and pass around
BoundingBox objects instead of lists of bounds.
2011-11-14 09:42:57 +00:00
Shaun McDonald
37df03a043 Cleanup the Relation.from_xml to come in line with the Way and Node versions. Includes tests. Bug fix for the previous tests. 2009-06-10 17:17:03 +00:00
Matt Amos
04dbf32b73 Better testing of bbox handling in relations. Maybe fixes #1861, but wasn't able to reproduce the exact case. Fixed bug handling bboxes where element is repeated in relation. 2009-05-26 15:37:29 +00:00
Matt Amos
d7badc8402 Fixed precondition failed message which was trying to dereference nil. 2009-05-14 11:19:28 +00:00
Thomas Wood
c273b4b1fa Tests for PreconditionFailed error messages.
Change to relation.rb to bring element selection in-line with that of way, so to return nil to be caught later, rather than raise an error.
Change to way.rb to clarify which way on diff upload.
2009-05-06 21:08:50 +00:00
Shaun McDonald
d5a6efca7f a fix for the relation controller test 2009-05-01 10:29:19 +00:00
Shaun McDonald
f47ba4fb23 Fix the node and relation tests from when the users with data public=false were disallowed from editing. Needed extra fixtures. 2009-04-27 11:57:58 +00:00
Shaun McDonald
10fdeb2021 Make node update work with the new require data public to edit policy. Added convenience testing method for the require data public. Add 2 new fixtures that are owned by the public user. 2009-04-26 22:46:41 +00:00
Shaun McDonald
9ca382605c Fixing the create relation test, which now also tests to make sure that private users cannot edit. 2009-04-22 14:38:23 +00:00
Shaun McDonald
38e94c6baa fixing some of the relation tests. Some adjustments to the fixtures. 2009-04-22 00:42:23 +00:00
Matt Amos
0b76693672 Adding more tests for updating relation tags. 2009-04-21 20:33:16 +00:00
Shaun McDonald
ed87bd73f3 Remove function that is in the test help from functional test 2009-04-14 11:52:56 +00:00
Tom Hughes
c8ee135104 Merge 12304:14009 from trunk. 2009-03-08 13:02:37 +00:00
Shaun McDonald
8348493ccb Some improvements to the error messages that are returned by the api. 2008-11-25 18:59:35 +00:00
Shaun McDonald
0ff1214f86 Make the role in relations optional, with a test to make sure it is. Also start moving the errors reading the xml to exceptions, thus making it possible to give meaningful error messages, when bad xml is sent (More work is required on this including doing the same for nodes and ways). With the latest gems update it seems that the lib xml handling was broken, using the newer method. Adding the content type for the exceptions. 2008-11-24 18:55:24 +00:00
Matt Amos
e79fd07638 Made relations ordered. Added some tests for this. Otherwise interface is unchanged. 2008-11-10 15:41:05 +00:00
Shaun McDonald
b6c354b31b fixing the tests due to a osm -> diffChange and moving to floats 2008-11-09 16:49:27 +00:00
Matt Amos
d43a327a95 Implemented changeset bounding box handling for relations, based on the conversation on the mailing list. Its a bit complex... 2008-11-06 17:56:24 +00:00
Matt Amos
c05111fdca Added tests for relations for way/relation and a bit of DRYing up. 2008-10-28 14:49:51 +00:00
Shaun McDonald
427becc1db Moving all the functional tests to the Rails 2 way, which uses less code by having an additional sub-class to take care of the duplicate code in every test. There is a bug in rails 2.0.2, which means that super doesn't get called in the setup method in the functional tests. This is fixed in Rails 2.1.2, thus a version bump should really be done. 2008-10-28 12:27:10 +00:00
Matt Amos
5dd3eb769a Refactored test a bit to make it nicer. 2008-10-21 11:40:06 +00:00
Matt Amos
498d695064 Added test for relations_for_node where the relation had been deleted. 2008-10-21 11:38:13 +00:00
Matt Amos
44034cd781 Added some more functional tests for way and relation delete methods. 2008-10-14 14:34:17 +00:00
Matt Amos
b56f57ec43 Fixed up delete methods on nodes, ways and relations to return the new version number and added some more tests. 2008-10-14 14:27:12 +00:00
Matt Amos
127bb4523e Fixed problems with the relations functional tests. 2008-10-13 15:23:48 +00:00
Shaun McDonald
34bc4686cd Some comment about where to add code to get some more of the functional changesets working. 2008-10-10 07:58:33 +00:00
Frederik Ramm
d0aa199e92 - add old_relation_controller and stuff so that relation history works. fixes #557.
- minor testing fixes.
2008-03-16 23:16:18 +00:00
Gabriel Ebner
cfbdd3f7e1 Merge rails_port as of r4613 & fix tests. 2007-09-20 14:37:29 +00:00
Frederik Ramm
922a000b19 added tests for way and relation controllers 2007-09-13 11:06:33 +00:00
Frederik Ramm
78b440ffc1 preliminary commit 0.5 API with relations / untested after entity-relation rename, some changes still in queue 2007-08-29 22:00:26 +00:00