Commit graph

2180 commits

Author SHA1 Message Date
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
Shaun McDonald
679e59210c Check to see if the e-mail test works 2008-07-15 17:51:26 +00:00
Shaun McDonald
8429c85051 Check to see if the e-mail test works 2008-07-15 16:36:43 +00:00
Shaun McDonald
cf78f3e6dd Can now run tests that use composite_primary_keys in the fixtures. Adding a new test to check that you can't add duplicate user preferences, and the display name of the user is guaranteed to be unique. 2008-07-15 15:51:45 +00:00
Shaun McDonald
c9a171c745 Removing the in_world test from the model since it is included in the geo_record library. Adding visible and version to the nodes and current_nodes fixtures. Adding old node test. Slightly different comparisions. 2008-07-08 18:17:08 +00:00
Shaun McDonald
dce4f18a3e node unit tests with inside limits now. 2008-07-08 15:38:31 +00:00
Shaun McDonald
64a5e21f53 Fixing the resync that I had done wrong at the end of last week on the nodes. All unit tests now do work. More assertions added. Using a scaling factor as a constant, so that the nodes are stored in the db correctly. Using the same scaling factor in the georecord library, to make code more readable, and reduce errors. Removing duplicate code that is in the GeoRecord include library. 2008-07-07 14:20:27 +00:00
Shaun McDonald
0a459023d3 Now all the unit tests work 2008-07-03 10:56:17 +00:00
Shaun McDonald
98e11d164f Removing id's so that the ids are generated, and it makes it easier to deal with referential tests. Now have messages and users with basic tests. Using http://api.rubyonrails.com/classes/Fixtures.html. 2008-06-04 16:35:00 +00:00
Shaun McDonald
f58fb85e03 improved messages fixtures. Additional user fixture (for sending messages between the users). Checking that an empty message fails. 2008-06-04 06:48:49 +00:00
Shaun McDonald
abb93de627 Adding some additional node fixtures to test edge cases. Having a bit of an issue as the too far north and south tests aren't working as expected, even so the too far east and west ones are. 2008-06-02 17:27:32 +00:00
Shaun McDonald
f97c16d5c4 You can now test nodes. This test needs looked at again, as it currently doesn't test the node tags 2008-06-02 15:28:03 +00:00
Shaun McDonald
c373220bd2 sort the default test database user and password.
Adding new test for the user
2008-06-02 11:00:09 +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
Steve Coast
e13337354d preference stuff 2008-02-23 11:12:42 +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
6d07f5661a changed from nd id=... to nd ref=... 2007-08-31 22:33:27 +00:00
Frederik Ramm
0c2ea2915f renamed entity leftovers 2007-08-30 09:23:50 +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
02451061ce segment stuff removed 2007-08-29 21:38:38 +00:00
Tom Hughes
79457cd43e Factor out loading of the various fixtures needed to test API calls
into a shared method.
2007-07-27 08:47:35 +00:00
Tom Hughes
c1089f6149 Load way fixtures so segment delete tests will fail when segments
are in use.
2007-07-27 08:29:13 +00:00
Frederik Ramm
efc4c6f85d added more tests 2007-07-26 22:05:51 +00:00
Tom Hughes
b13eb8824e Add some basic tests for nodes. 2007-07-24 22:58:16 +00:00
Nick Black
9c5c71f2d7 added user stuff inc beginning of messages 2007-05-04 19:42:17 +00:00