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
|
38e94c6baa
|
fixing some of the relation tests. Some adjustments to the fixtures.
|
2009-04-22 00:42:23 +00:00 |
|
Matt Amos
|
d5d9b1a374
|
Extra test for updating relation tags.
|
2009-04-21 19:53:14 +00:00 |
|
Matt Amos
|
6488ebe12f
|
More test fixes after fixture changes.
|
2009-04-21 19:51:43 +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 |
|
Matt Amos
|
f492a1b709
|
Fixed unit tests and fixture loading for postgres. The foreign keys were playing havoc with the tests when only some fixtures were loaded.
|
2009-03-28 20:18:26 +00:00 |
|
Tom Hughes
|
81835c55a0
|
Commit ACL related files from earlier merges as svn merge seems to
neglected to add them...
|
2009-03-08 16:13:00 +00:00 |
|
Matt Amos
|
76708eefcf
|
Fixed bug in changeset closing and querying where the number of elements exceeded the maximum. Added a fixture for this.
|
2009-02-07 17:45:27 +00:00 |
|
Thomas Wood
|
e198ec6252
|
Add validations for diary entry lat/lons and tests for diary entry validations. Closes #1395
|
2008-12-15 23:24:09 +00:00 |
|
Shaun McDonald
|
e9527b363d
|
Refactoring the amf controller, and all models so that save_with_history! is now private. Everyone should use create_with_history, delete_with_history, and update_from instead. Also gets the amf controller to do version checks in the node/way/relation models. Needs checked. This breaks Potlatch until #1376 is fixed.
|
2008-12-04 17:30:17 +00:00 |
|
Shaun McDonald
|
1375095343
|
More model validations. Fixing one test.
|
2008-11-25 17:23:47 +00:00 |
|
Shaun McDonald
|
d6b4b8c8a1
|
Changeset tag unit tests
|
2008-11-19 18:00:52 +00:00 |
|
Shaun McDonald
|
ffbc4d5cb2
|
More tag validations, and finishing the node/way/relation tests.
|
2008-11-19 17:23:15 +00:00 |
|
Shaun McDonald
|
b7b2b502cf
|
Relation Tag testing. Also sort the belong_to/has_many for user/changeset/old_way.
|
2008-11-18 18:50:24 +00:00 |
|
Shaun McDonald
|
96dfe22fb0
|
Validations on the way tags, with unit tests
|
2008-11-18 16:21:32 +00:00 |
|
Shaun McDonald
|
9a4ea6bfd0
|
Adding validations for the length of node tags, and the presence of the id (and version). More tests, including some boiler plate tests.
|
2008-11-17 18:53:09 +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 |
|
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 |
|
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 |
|
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 |
|
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
|
2c5f6740c7
|
Small fixes to unit tests where user_id has become changeset_id.
|
2008-10-09 10:19:16 +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
|
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 |
|
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 |
|
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 |
|