Tom Hughes
755585e230
Add functional tests for nodes/ways/relations API methods
2013-08-04 11:12:09 +01:00
Tom Hughes
90e46a58de
Add routing tests for all supported routes
2012-03-09 19:49:44 +00:00
Tom Hughes
6ffee1cf4b
Sort node ids in test_ways_for_node
...
The ways_for_node method on the way controller does not guarantee
to return nodes in any particular order so we shouldn't rely on it
doing so in our tests.
2012-01-14 13:35:30 +00:00
Tom Hughes
1da4cecaf6
List all objects that are blocking a delete, in a well defined order
2011-11-14 09:42:49 +00:00
Matt Amos
11d136e508
Patching fix to test from branch.
2010-03-22 22:56:45 +00:00
Thomas Wood
76b6d7d876
Tests for [17838]
...
Why is our testing fixtures such a mess? It took me half an hour to find a useable node. And I'm still not sure if it's ok, since I want to get to bed. kthxbye
2009-09-29 03:58:33 +00:00
Tom Hughes
4a4d89138c
Rationalise API error classes by getting of the render_opts method which
...
was never used except to extract the data it contained. Instead each class
now has a status method that returns the HTTP status code to use and a
to_s method to return a textual description of the error.
2009-05-21 19:28:39 +00:00
Matt Amos
43988beec3
A better optimisation, as suggested by TomH.
2009-05-11 15:16:36 +00:00
Matt Amos
b7f306a437
Fixed problem where tag lengths were generating a 422 error with no message. They now generate a 400 error with a meaningful message.
2009-05-10 00:33:55 +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
0dd0f1881d
Fixing some of the tests, adding the new tests to make sure that you can't edit when your not a public user
2009-04-18 17:17:22 +00:00
Shaun McDonald
d84d5c68de
Remove function that is in the test help from functional test
2009-04-14 11:39:46 +00:00
Shaun McDonald
6e98e324e5
better handling of duplicate tags. Extra validation in the tests.
2008-11-28 17:38:23 +00:00
Matt Amos
c3785ff278
Changed duplicate tags test to test the correct code path - was previously failing in libxml, rather than the duplicate tags check.
2008-11-28 12:33:18 +00:00
Matt Amos
94cf6ece2d
Made full test a bit more thorough.
2008-10-28 15:01:17 +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
6339473cb7
Added tests for ways_for_node. Altered behaviour to not return deleted ways. Fixed ways fixture where most recent history != current.
2008-10-21 10:52:52 +00:00
Matt Amos
654470b896
Altered a functional test on way_tags.
2008-10-17 11:21:40 +00:00
Matt Amos
df496b44cd
More functional tests, this time for way_tags.
2008-10-17 11:06:58 +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
3549d8900f
All API 0.6 functional tests now pass.
2008-10-13 15:46:22 +00:00
Matt Amos
1e5782f579
Fixed up way controller tests for API 0.6.
2008-10-13 15:40:32 +00:00
Shaun McDonald
24b21e4a29
additional consistency checks. making the error message for the number of nodes use the configured number of nodes, rather than a hard coded number. minor improvements to the way controller functional tests. Not sure if they should be turned into integration tests.
2008-10-12 22:32:51 +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
Shaun McDonald
796da2669d
Starting to test the output of the xml to make sure that it is what we expect to be returned by teh api for ways tests.
2008-07-24 10:56:29 +00:00
Frederik Ramm
922a000b19
added tests for way and relation controllers
2007-09-13 11:06:33 +00:00
Frederik Ramm
6d07f5661a
changed from nd id=... to nd ref=...
2007-08-31 22:33:27 +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
Frederik Ramm
efc4c6f85d
added more tests
2007-07-26 22:05:51 +00:00