Commit graph

225 commits

Author SHA1 Message Date
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
Matt Amos
df496b44cd More functional tests, this time for way_tags. 2008-10-17 11:06:58 +00:00
Matt Amos
89c677d881 Fixed fixtures and added new tests for ways and way_nodes. 2008-10-16 13:02:09 +00:00
Andy Allan
25c3310be4 Checking foreign key constraints on message recipients and senders 2008-10-15 15:23:56 +00:00
Andy Allan
2939aa9398 utf-8 wide-char testing of message title - this will come in useful for other things e.g. k/v pairs 2008-10-15 13:17:10 +00:00
Matt Amos
6a276202e5 Added more fixtures and tests for node versioning calls. 2008-10-15 11:12:26 +00:00
Matt Amos
45a9d94337 Cleaned up some unreachable code. Added first test on the 'old' node controller. 2008-10-14 16:40:17 +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
cf24a5a3ee Added a bunch more tests on the API 0.6. Fixed node/way/relation from_xml code to disallow duplicate tag keys. 2008-10-13 17:50:15 +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
Matt Amos
127bb4523e Fixed problems with the relations functional tests. 2008-10-13 15:23:48 +00:00
Matt Amos
a2498928e4 Fixed node functional tests. A couple of changes to the old_node model and node controller for changesets. 2008-10-13 14:08:31 +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
Matt Amos
2c5f6740c7 Small fixes to unit tests where user_id has become changeset_id. 2008-10-09 10:19:16 +00:00
Shaun McDonald
2347761266 some useful notes in code for ideas that require implementing. 2008-10-07 23:49:53 +00:00
Shaun McDonald
b6a3e9671c Updating the fixtures for the new changesets 2008-10-07 22:40:28 +00:00
Shaun McDonald
6dfc83da03 fixing the test that was broken in the resync 2008-09-25 16:20:36 +00:00
Shaun McDonald
87494900df more testing of node tags 2008-08-18 13:55:21 +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
Shaun McDonald
3d5ee2675b Now just got one test to sort on the functional tests. All other tests are working and pass. Plenty more to write though. 2008-07-22 14:06:53 +00:00
Shaun McDonald
ebb8e5524e First current node tag test 2008-07-18 17:10:24 +00:00
Shaun McDonald
1bcc2242c0 Make sure that there is a sender and a recipient of a message. New test to make sure that there a message also has a sender and a recipient, as the validates_associated doesn't do anything if they are nil. 2008-07-18 16:44:14 +00:00
Shaun McDonald
a14419f04f Adding message tests. Adding some international UTF-8 chars for the display name and email address tests. 2008-07-18 16:26:21 +00:00
Shaun McDonald
411445075b some tweaking to the user fixtures so that there is 2 near each other. new users nearby and friends with tests. 2008-07-17 15:08:00 +00:00
Shaun McDonald
0c3f15f5aa new friends with test. Fix to the display name valid tests to make sure that they don't test the length 2008-07-17 11:18:33 +00:00
Shaun McDonald
b931d6f516 testing the display name 2008-07-17 10:44:06 +00:00
Shaun McDonald
9694b977d3 fixing the new display name test 2008-07-15 18:04:35 +00:00