Thomas Wood
76b6d7d876
Tests for [17838]
...
Why is our testing fixtures such a mess? It took me half an hour to find a useable node. And I'm still not sure if it's ok, since I want to get to bed. kthxbye
2009-09-29 03:58:33 +00:00
Štefan Baebler
93c592bbe4
tests for diary rss feeds
2009-08-19 05:07:26 +00:00
Tom Hughes
908a6ef409
Merge 16891:17044 from trunk.
2009-08-13 17:18:08 +00:00
Tom Hughes
565171486f
Add extra visibility options for GPS traces, and enhance the API call
...
that returns trace data to return more information if the owner of the
trace has allowed it. Based on a patch from Matt Amos.
2009-08-13 17:06:11 +00:00
Matt Amos
eff06faf46
Moved find_token method into the token class, since that seems a more appropriate place for it.
2009-08-03 14:00:29 +00:00
Tom Hughes
64fb530581
Merge 16110:16487 from trunk.
2009-07-14 08:03:24 +00:00
Matt Amos
1d8e66016c
Adding 'shortlink' functions which will allow URLs like http://osm.org/go/XXXX suitable for use in twitter, etc...
2009-06-25 23:31:53 +00:00
Tom Hughes
f4571eeb7c
Revert r16046.
...
DO NOT COMMIT MAJOR ENHANCEMENTS TO TRUNK WITHOUT TALKING TO ME FIRST.
2009-06-23 02:48:38 +00:00
Matt Amos
b8f6dbd403
Adding initial version of the OAuth token authentication method. This adds basic OAuth support for registering apps, getting and revoking keys, etc... The tokens come with 6 separate permissions bits; read/write user preferences, write diaries, write API and read/write GPS traces. Needs more tests.
2009-06-22 16:54:37 +00:00
Shaun McDonald
65eb6af303
Give a nice error message when parsing the nwr tags and they are missing the k and/or v. Also includes tests.
2009-06-11 11:08:37 +00:00
Shaun McDonald
17a1e22df9
Adding a couple of extra unit tests for the parsing of keys
2009-06-10 17:42:29 +00:00
Shaun McDonald
37df03a043
Cleanup the Relation.from_xml to come in line with the Way and Node versions. Includes tests. Bug fix for the previous tests.
2009-06-10 17:17:03 +00:00
Shaun McDonald
e4d7b3ee66
Throw errors in the way xml parsing if there is a problem. Bring the way parsing in line with the node parsing. Properly deal with the 0 id case. Some Way.from_xml tests.
2009-06-10 15:42:12 +00:00
Shaun McDonald
3170600b9c
More Node.from_xml unit tests
2009-06-09 14:37:47 +00:00
Shaun McDonald
e3693d487a
More unit tests for the parsing of the Node.from_xml. Some code clean up to ensure that a node that cannot be parsed will always throw an exception, to be handled by the arround handler.
2009-06-08 18:53:19 +00:00
Tom Hughes
2f3e23f6eb
Move to version 2.3.2 of rails.
2009-06-04 08:08:24 +00:00
Shaun McDonald
f183bd8ec8
Some test improvements
2009-05-26 14:45:30 +00:00
Shaun McDonald
53b4d645d8
First stage of i18n. Some migrations and extra plugins.
2009-05-22 18:36:17 +00:00
Tom Hughes
ed68d524de
Use a local lookup table for country bounding boxes rather than relying
...
on geonames.org being able to do it in a reasonable time.
2009-05-11 16:50:09 +00:00
Matt Amos
535bc8f1d8
disabling test case because i don't think there is a fix with the current version of composite_primary_keys.
2009-05-11 16:17:36 +00:00
Shaun McDonald
9156448ad6
fix the user unit test so that it doesn't use a depricated method in rails 2.2.2
2009-05-08 17:26:23 +00:00
Shaun McDonald
e509850554
fixing the tests I broke earlier due to the fixture changes
2009-05-06 17:56:10 +00:00
Matt Amos
264b92bd9f
Fixed bad coding practice in test.
2009-04-30 18:12:23 +00:00
Matt Amos
9cd381037a
Fixed indeterminacy in test.
2009-04-30 18:09:54 +00:00
Shaun McDonald
db17af19bb
fix more of the tests, particularly changeset controller. Needed more fixtures to fix them. The last failing changeset controller test needs some more work on the fixtures.
2009-04-29 22:25:49 +00:00
Shaun McDonald
dcca3ab0e9
More changeset test improvements. Another fixture was required for one of the tests
2009-04-29 17:29:58 +00:00
Shaun McDonald
f47ba4fb23
Fix the node and relation tests from when the users with data public=false were disallowed from editing. Needed extra fixtures.
2009-04-27 11:57:58 +00:00
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