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
|
08bd1688ee
|
Railsify the relation member model, type attribute, by putting it into class case, rather than lower case. Requires reload of postgres databases or manual change to the enum. Fixes the databrowser on postgres, however affects the rest of the codebase.
|
2009-04-15 14:49:21 +00:00 |
|
Shaun McDonald
|
ed87bd73f3
|
Remove function that is in the test help from functional test
|
2009-04-14 11:52:56 +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
|
72a3947b1b
|
remove the dup methods from the test helper. Add tests for no content and checking that a record has been created.
|
2009-04-13 00:13:51 +00:00 |
|
Shaun McDonald
|
90ec90f13d
|
reverting last change, which included posgres config specific things
|
2009-04-13 00:10:37 +00:00 |
|
Shaun McDonald
|
2c52b06716
|
Remove duplication that is in the test helper. Adding tests for the passing of no content, and the wrong method used. Also ensuring that there has been a changeset added to the db when it is created.
|
2009-04-13 00:04:24 +00:00 |
|
Shaun McDonald
|
0f25285ab6
|
More tests, found a bug in the data browser, no fix yet. Fix db readme. Don't show the signup page to logged in users, by redirecting them to the home page. Remove unnessesary begin blocks in the browse controller.
|
2009-04-12 23:20:31 +00:00 |
|
Matt Amos
|
afcb345014
|
Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours a year.
|
2009-03-29 01:31:04 +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 |
|
Matt Amos
|
be75a1504f
|
Fixed a couple of bugs with changeset bounding box calculation when modifying or deleting.
|
2009-03-27 12:22:23 +00:00 |
|
Matt Amos
|
568c05c548
|
Fixing failing potlatch tests. Someone who knows what the potlatch API is actually supposed to be doing should check these...
|
2009-03-25 17:54:21 +00:00 |
|
Thomas Wood
|
d841d3d135
|
<td> tags must be closed, move browse index test over to changeset, lazy fix for new format
|
2009-03-23 21:35:06 +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 |
|
Tom Hughes
|
c8ee135104
|
Merge 12304:14009 from trunk.
|
2009-03-08 13:02:37 +00:00 |
|
Tom Hughes
|
10b71ba2f6
|
Add an ACL system to allow key/value pairs to be attached to blocks
of IP addresses, and implement an ACL restriction that allows account
creation to be blocked.
|
2009-02-19 13:47:43 +00:00 |
|
Matt Amos
|
5143fbcd5b
|
Test and fix for #1567, for teh betterer osmChange compliance.
|
2009-02-08 16:54:28 +00:00 |
|
Matt Amos
|
12b779f0b4
|
Test and fix for issue #1568. Wasn't testing for end element in the right place.
|
2009-02-08 16:33:48 +00:00 |
|
Matt Amos
|
c54471ee33
|
Fix for #1565. Added a couple of tests and fixed another issue with re-used placeholder IDs.
|
2009-02-08 08:28:01 +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
|
747d6f1d11
|
Revert last commit - too many test failures
|
2008-12-31 16:43:44 +00:00 |
|
Thomas Wood
|
898beb7b7f
|
DateTime => Time for consistency in changeset code, ok by shaun.
|
2008-12-31 16:33:02 +00:00 |
|
Thomas Wood
|
8fe53e4823
|
Only show changesets that are actually closed in the index view.
|
2008-12-31 16:14:39 +00:00 |
|
Thomas Wood
|
62b6d15967
|
Make browse controller index show recently closed changesets, rather than recently changed nodes.
|
2008-12-23 15:47:06 +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
|
548265372e
|
Some extra stubs in the amf controller test
|
2008-12-15 19:27:52 +00:00 |
|
Shaun McDonald
|
850bd333eb
|
removing debug statement
|
2008-12-12 18:56:22 +00:00 |
|
Shaun McDonald
|
c76e60f052
|
Improving the not found handling of preferences. adding a user preference test. adding some utility methods to the test helper
|
2008-12-12 18:54:03 +00:00 |
|
Matt Amos
|
aeaf2d2d20
|
Added missing version to the pure rails AMF controller. More stringent tests on whichways.
|
2008-12-10 14:31:07 +00:00 |
|
Matt Amos
|
3ed9ac21b5
|
Some fixes to the rails part of the AMF controller and associated test.
|
2008-12-10 13:23:21 +00:00 |
|
Shaun McDonald
|
67157f69f3
|
count -> size for compatibility with ruby 1.8.6
|
2008-12-08 15:47:29 +00:00 |
|
Shaun McDonald
|
c0b4c1b905
|
Adding some amf create poi tests. Minor bugfix tweaks to the amf controller
|
2008-12-08 14:22:34 +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 |
|
Matt Amos
|
40adafa698
|
Adding missing fixtures to test helper.
|
2008-12-03 18:24:00 +00:00 |
|
Shaun McDonald
|
e989b1a880
|
ensure that uploads that don't supply a lat and lon for a node. Adding related test and fixing other tests.
|
2008-12-01 18:32:54 +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
|
89bd962ff0
|
Adding test to check that users can't update changesets that they don't own.
|
2008-11-26 15:03:50 +00:00 |
|
Shaun McDonald
|
a4e5e8437f
|
Renaming the include action to expand_bbox in the changeset controller.
|
2008-11-26 11:36:10 +00:00 |
|
Shaun McDonald
|
8348493ccb
|
Some improvements to the error messages that are returned by the api.
|
2008-11-25 18:59:35 +00:00 |
|
Shaun McDonald
|
1375095343
|
More model validations. Fixing one test.
|
2008-11-25 17:23:47 +00:00 |
|
Shaun McDonald
|
0ff1214f86
|
Make the role in relations optional, with a test to make sure it is. Also start moving the errors reading the xml to exceptions, thus making it possible to give meaningful error messages, when bad xml is sent (More work is required on this including doing the same for nodes and ways). With the latest gems update it seems that the lib xml handling was broken, using the newer method. Adding the content type for the exceptions.
|
2008-11-24 18:55:24 +00:00 |
|
Matt Amos
|
783528830a
|
Fixed bug in changeset idle timeout. Fixed another with a spurious require.
|
2008-11-21 12:53:09 +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 |
|
Matt Amos
|
a90be5e69a
|
Migration to add close-time to changesets. This replaces the boolean 'open' attribute. Added checks to ensure that the maximum lifetime and number of changes in a changeset are enforced. Added some tests.
|
2008-11-17 19:00:01 +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 |
|
Matt Amos
|
495bd7f1f0
|
Made user input parsing more robust in changeset query method. Added tests.
|
2008-11-17 15:30:46 +00:00 |
|