Tom Hughes
e3152ea1c7
Add some more unit tests for users
2012-03-07 16:44:58 +00:00
Tom Hughes
2a62ebec53
Add some extra unit tests for diary entries
2012-03-07 15:59:07 +00:00
Tom Hughes
5c557cfe7c
Add some tests for updating users
2011-12-13 10:28:17 +00:00
Tom Hughes
c00dd8c712
Add some OAuth tests
2011-11-19 17:38:06 +00:00
Tom Hughes
fc25c3d412
Rename all ID columns that aren't unique
...
Having a table with a column called ID that is only part of the
primary key really doesn't work as rails likes to treat ID as a
special name so it becomes impossible to assign to it or read it.
2011-11-14 09:42:52 +00:00
Tom Hughes
99a4ddd1da
Set the preferred language for all test users
...
Users with no preferred language will have one set by any request
which has an Accept-Language so in order to stop one test accidentally
affecting another by changing the language we need to make sure all
the users have a preferred language set to start with.
2011-11-14 09:42:47 +00:00
Tom Hughes
22d15c090a
Add fixtures for user blocks and tokens
2011-11-14 09:42:45 +00:00
Tom Hughes
f59747585d
Mark all users which have seen the terms as having accepted them
2011-09-24 15:23:24 +01:00
Tom Hughes
4e38994d1b
Cleanup merge breakage
2011-05-21 14:05:55 +01:00
Tom Hughes
832b96b75a
Merge branch 'master' into openid
...
Conflicts:
app/controllers/user_controller.rb
app/views/user/terms.html.erb
test/fixtures/users.yml
2011-05-21 12:14:56 +01:00
Matt Amos
8b12abd5bb
Phase 2 CTs implementation and tests, with config parameter
2011-04-03 13:46:16 +01:00
Tom Hughes
e09b187cae
Merge branch 'master' into openid
...
Conflicts:
app/controllers/user_controller.rb
2010-10-17 10:59:29 +01:00
Tom Hughes
71f1554212
Make trace API a proper CRUD API like other object types
2010-10-11 23:09:27 +01:00
Tom Hughes
c6609cce24
Fixup tests to work after changes to user controller
2010-05-11 14:12:57 +01:00
Tom Hughes
f85681c5ce
Merge branch 'master' into openid
...
Conflicts:
app/controllers/user_controller.rb
2010-05-07 22:28:07 +01:00
Tom Hughes
20cc601f85
Fix tests for changes to user model
2010-05-06 22:11:55 +01:00
Kai Krueger
92af0eccd5
Add test for OpenID login and signup
...
The tests need the ROTS (Ruby OpenID Test Server) running.
ROTS can be found at http://github.com/roman/rots
If ROTS is not running, there will be 4 failed test cases, but otherwise
things should work
2010-05-02 11:04:51 +01:00
Shaun McDonald
3a16746650
Fix changeset fixtures as noted on the dev mailing list. http://lists.openstreetmap.org/pipermail/dev/2010-January/018283.html
2010-01-18 01:07:52 +00:00
Matt Amos
ca06b3c7b1
New migration to add better auditing to user_roles and better column names there and on user_blocks. Added a helper for displaying block status messages.
2009-09-29 16:44:03 +00:00
Matt Amos
09c5740b5b
Merging 17824:17845 from trunk to blocking branch.
2009-09-29 10:23:31 +00:00
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
Matt Amos
daa2496024
First version of blocking feature. Allows both time-based (for map protection) and notice-based (for education) blocks on users. Also introduces user roles and a simple UI for displaying and administering these.
2009-09-28 16:01:00 +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
05e2120273
Merged 16488:16743 from trunk.
2009-07-31 10:42:06 +00:00
Matt Amos
44ec85fcad
fixed gps_point coordinates and tile. why was this passing the tests before?
2009-07-30 15:19:07 +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
Tom Hughes
01e75a02dc
More diary test fixes.
2009-05-30 16:59:06 +00:00
Tom Hughes
dda2ccafe7
Fix a couple of diary tests.
2009-05-30 16:51:56 +00:00
Shaun McDonald
f183bd8ec8
Some test improvements
2009-05-26 14:45:30 +00:00
Shaun McDonald
d5d4adb2f9
Fix the fixtures. Related changeset 15184.
2009-05-26 13:12:42 +00:00
Shaun McDonald
53b4d645d8
First stage of i18n. Some migrations and extra plugins.
2009-05-22 18:36:17 +00:00
Shaun McDonald
d23d2c9d05
Extra little test, setting the language on the diary fixtures.
2009-05-15 15:41:45 +00:00
Matt Amos
66ae650c95
Oops. Fixed another Time/DateTime problem.
2009-05-14 13:13:09 +00:00
Matt Amos
71192daef2
Fixed problem with Time vs. DateTime classes in fixtures. Weirdly only affected mysql backend.
2009-05-14 11:52:15 +00:00
Matt Amos
1ceb4ab9ba
Fixed bug #1816 - the timeout updating logic should have been in a before_save handler, not in save_with_tags.
2009-05-12 13:54:37 +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
Shaun McDonald
d10931effa
More trace tests
2009-05-06 14:58:48 +00:00
Shaun McDonald
44c5248c1a
couple of fixes to the changeset upload delete
2009-04-30 17:25:53 +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
Tom Hughes
77a34278ca
Backout broken attempt at making case insensitive authentication work
...
on Postgres. As implemented this forces a table scan to authenticate
users which is ridiculous to save people pressing the shift key.
2009-04-23 23:46:45 +00:00
Shaun McDonald
f1a0331081
Hack a way to make the email and display name case insensitive for logging in, based on a suggestion by firefishy to use ILIKE. Changes requested from users on mailing list. Includes some tests to check the case insensitivity of the username, and and e-mail address on login.
2009-04-23 19:20:08 +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
0f111e7e2a
Fixed formatting and stuff in fixtures.
2009-04-21 18:37:24 +00:00
Shaun McDonald
b27e534b2e
Add new fixtures for testing multiple tags on a relation.
2009-04-21 17:54:59 +00:00