Commit graph

2254 commits

Author SHA1 Message Date
Matt Amos
519d402cb2 Added tests for changeset close method. 2008-11-17 11:59:42 +00:00
Matt Amos
98b15bef45 Implemented changeset tags updating via the update method. 2008-11-17 11:45:50 +00:00
Matt Amos
e57e2c497c Altered tests on AMF controller so that they give failures instead of errors. Return format seems to have changed, so someone who knows more about AMF controller should have a look. 2008-11-17 11:12:48 +00:00
Shaun McDonald
6bca4b66d1 More unit test stubs 2008-11-14 17:28:16 +00:00
Shaun McDonald
57e2d5a8f5 Unit tests work again. Fixed the set fixture class that I should. Adding 2 length checks to the user preference controller. 2008-11-14 16:26:56 +00:00
Shaun McDonald
c8b70c1c72 Adding some more unit test stubs that need filling out. Adding changeset tags fixture. Indentation fix in way model. 2008-11-14 02:06:04 +00:00
Shaun McDonald
bdd5c317a7 Adding some more diary entry tests. Making the RSS feed links more portable, by using the SERVER_URL constant. Fixing the validation for the length of the language of diary entries until the i18n branch is integrated. 2008-11-13 17:20:40 +00:00
Shaun McDonald
797cbaab1e Covering the case of an entry not being found. More diary entry tests. 2008-11-12 18:48:58 +00:00
Shaun McDonald
22f3d7ce2e more diary entry test 2008-11-11 18:33:08 +00:00
Shaun McDonald
995c9df195 more diary entry tests, and a minor fix to the relation member that makes the code a bit more readable. 2008-11-11 18:07:59 +00:00
Shaun McDonald
f3e382732a slight more work on the diary test 2008-11-10 19:21:59 +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
Andy Allan
e1dde5cffc forgot the test change from 11866 2008-11-10 11:39:10 +00:00
Andy Allan
fc99863df9 In YAML yes is a boolean keyword: also fix test that was erroneously asserting success 2008-11-10 11:32:17 +00:00
Shaun McDonald
5ed41857f7 adding first integration for testing user diaries, as multiple controllers are required. more work required. 2008-11-09 19:51:56 +00:00
Dave Stubbs
2aa3daf0e0 amf get*_history tests and related fixes 2008-11-09 18:48:16 +00:00
Dave Stubbs
436470b057 a few more amf tests and associated bug fixes 2008-11-09 17:41:38 +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
Dave Stubbs
eebadd141a 1st amf_controller tests, and some basic sanity check fixes 2008-11-08 19:41:29 +00:00
Andy Allan
46c0e364ee correcting typo on gps_points fixtures 2008-11-08 18:59:06 +00:00
Shaun McDonald
c6592045c4 Adding some diary fixtures and test stubs 2008-11-08 11:34:58 +00:00
Matt Amos
b875d14b7c Added a query method for querying bounding boxes, times and users of changesets. Needs (much) more testing. 2008-11-07 18:24:34 +00:00
Andy Allan
3cb759f085 users fixtures should all have creation times 2008-11-07 11:21:46 +00:00
Andy Allan
e156663723 Booleans should be true/false for compatibility with other db adapters 2008-11-07 11:20:25 +00:00
Matt Amos
383f204e64 Added a changeset/#id/include method to POST to to expand the bounding box. 2008-11-06 18:42:06 +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
02fbcf5f06 Added first attempt at bounding box support in changesets and tests for the same. 2008-11-04 15:52:22 +00:00
Shaun McDonald
183ffc7864 Adding an extra test to make sure that the correct response is returned when an invalid changeset action is uploaded. 2008-11-03 18:54:19 +00:00
Shaun McDonald
e932a69bd7 Additional api tests for the changes. Also making sure that you cannot request a change of 0 length, so that you can detect erronious input. 2008-11-03 18:05:19 +00:00
Shaun McDonald
9705105681 Starting the gpx trace testing with additional fixtures 2008-10-30 18:50:45 +00:00
Matt Amos
9f3a4a5e01 Better error message and test for invalid UTF-8 sequences. 2008-10-29 15:33:23 +00:00
Andy Allan
38f4e17865 message title shouldn't accept invalid utf-8 sequences - test currently fails 2008-10-28 18:34:05 +00:00
Matt Amos
94cf6ece2d Made full test a bit more thorough. 2008-10-28 15:01:17 +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
79284559af Adding stub functional test files for all the controllers that should have tests written for them. 2008-10-28 12: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
Shaun McDonald
e18c33f733 Prepare for Rails 2.1+, as we will no longer be able to use a symbol in the set_fixture_class method, instead we must use a Class. This change doesn't affect Rails 2.0.2, as currently used. All tests still work. :-) 2008-10-27 18:45:28 +00:00
Matt Amos
8a57904398 Implemented osmChange diff downloads for changesets and a couple of tests. 2008-10-27 17:50:28 +00:00
Shaun McDonald
b45dd63283 cover the other extreme in the map bounary sanitizeation. Ading some documentation, which is parsed when running rake doc:app. Fixing up a couple of tests. 2008-10-26 23:43:37 +00:00
Matt Amos
dc2a959037 Added tests for changeset upload code. Refactored diff reading code and put it into /lib. Changed the route of a changeset upload to explicitly refer to the changeset it applies to (i.e: resource). 2008-10-23 15:14:17 +00:00
Shaun McDonald
6df7fdbb9e Adding new browse controller test, which is mostly stubs just now. Also adding the version number of the recently changed nodes in the data browser. 2008-10-21 16:18:18 +00:00
Shaun McDonald
e13b35e0cb making it clearer when a test case fails, as to which test case it is that is failing. Adding some more bboxes for testing. 2008-10-21 14:28:52 +00:00
Matt Amos
417ded9da5 Added min_lat > max_lat test. 2008-10-21 14:00:08 +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
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
a8eb3a6ada Removed debugging code. 2008-10-21 09:31:36 +00:00
Shaun McDonald
138c20322d Adding some api tests for both the map and trackpoints requests. Needs some better bboxes. Adding new changeset controller fnctional tests. 2008-10-20 15:05:12 +00:00
Shaun McDonald
3e9ceb0c38 more testing of the api. Changing the generator so that it is a constant to come in line with the server url and the api version. Adding tracepoints per page to the capabilities api call. Better error message for api call. 2008-10-19 07:09:04 +00:00
Matt Amos
654470b896 Altered a functional test on way_tags. 2008-10-17 11:21:40 +00:00