Tom Hughes
ab3b4b0437
Increase allowed time delta in message sending test
...
Only allowing one second can fail sometimes, because if the actual
time is close to rolling over to the next second then the message
time will be rounded down but Time.now may roll over to the next
second before we get to the assertion.
2012-09-30 14:24:28 +01:00
John Firebaugh
d62e8c43f3
Inline key partial used only on index
2012-09-30 11:59:06 +01:00
Tom Hughes
f47edb1446
Don't report the PD flag in the user API call
2012-09-24 18:44:12 +01:00
Tom Hughes
3ce4de1295
Add a /api/0.6/user/NNNN call to the API
2012-09-24 18:44:11 +01:00
John Firebaugh
20e5f756be
Support the same edit params for Potlatch 1 and 2
...
Trac ticket 4587
2012-09-21 15:16:56 -07:00
Matt Amos
8523f53099
Added a test for trac ticket 4471, and fixed the issue.
2012-09-21 09:07:21 +01:00
John Firebaugh
8ec415b060
Use a param to trigger export rather than a separate action
...
In site/_resize.html.erb and site/_search.html.erb, a
params[:action] conditional is used to include code that
should only run on the index action -- but it should be run
on the export action too. Cleanest fix is to eliminate that
action entirely.
2012-09-07 09:27:59 +01:00
Tom Hughes
1eab17f82e
Test that replying to a message marks it as read
2012-09-03 08:47:51 +01:00
Tom Hughes
815c98c977
Select which key entries to show on the client
...
Rather than requesting a new key every time the zoom or layer
changes, serve up all the entries initially with appropriate
annotations to allow the client to decide which ones to show.
2012-08-31 10:29:32 +01:00
Tom Hughes
3d874a5d61
Use start.html.erb views instead of _sidebar.html.erb partials
2012-08-27 21:28:41 +01:00
John Firebaugh
cc4f133e64
Extract export.js static asset
2012-08-27 18:00:13 +01:00
Tom Hughes
3ec1a05988
Update tests for changes to HTML escaping in rails 3.2.8
2012-08-17 22:57:58 +01:00
Tom Hughes
05515d644a
Test the links in the menu of the user view page
2012-08-15 22:36:40 +01:00
Tom Hughes
3d5a613c5e
Add tests for make_friend and remove_friend
2012-08-15 22:36:39 +01:00
Tom Hughes
573991e5a9
Fixup make_friend and remove_friend properly
...
Requests using POST are now actioned immediately, while requests
using GET present a confirmation page.
2012-08-15 20:13:14 +01:00
Tom Hughes
740ba0dd38
Require POST for make_friend and remove_friend
...
Note that this breaks the make_friend link in friend notfication
emails, but it will do as a temporary measure.
2012-08-14 22:49:52 +01:00
Tom Hughes
ec92881dd0
Fix test failure caused by moving OAuth settings link
2012-08-10 08:27:28 +01:00
Tom Hughes
e4be816ca0
Don't allow hash signs in usernames
2012-07-23 12:59:50 +01:00
Andy Allan
2c67c079ac
Don't show coordinates for deleted nodes
2012-07-11 14:42:01 +01:00
Tom Hughes
04017d0e7a
Fix tests to cope with stricter route enforcement in rails 2.3.6
2012-06-18 13:03:03 +01:00
Tom Hughes
91a9738ee8
Don't try and look for variables in non-existent values
2012-06-01 15:48:23 +01:00
Tom Hughes
9813d9f1e4
Get all the tests passing under ruby 1.9
2012-05-27 13:51:25 +01:00
Tom Hughes
c2148e395d
Test new API permissions route
2012-05-05 15:30:23 +01:00
Enno Brehm
6a09f49e71
Implement API endpoint to query permissions.
2012-05-05 15:28:45 +01:00
Tom Hughes
bbc14fbcaa
Update fixture so active_block appears live...
2012-05-01 21:27:51 +01:00
Tom Hughes
6f248b6bbb
Add some basic changeset feed tests
2012-05-01 21:14:50 +01:00
Tom Hughes
d9dedf403d
Test that revoking OAuth tokens works
2012-04-24 21:28:20 +01:00
Matt Amos
7da8a5a1a8
Added redactions controller test and fixed a bug in the controller
2012-04-05 13:52:01 +01:00
Matt Amos
7c42552f16
Fixed fixture after adding link from redaction to user
2012-04-05 13:51:57 +01:00
Matt Amos
9c098816e5
Added tests for browsing object histories with redacted elements
2012-04-05 13:49:59 +01:00
Matt Amos
e01a309970
Added test for changeset/download hiding redacted elements
2012-04-05 13:49:53 +01:00
Matt Amos
d9e4e5836f
Added tests for old_* redaction routes
2012-04-05 13:49:51 +01:00
Matt Amos
8bfb5cae8a
Added relation redaction logic, same as node and way logic, plus tests
2012-04-05 13:49:46 +01:00
Matt Amos
990f3eba40
Altered old_way stuff to be Railsy like old_node is now
2012-04-05 13:49:43 +01:00
Kai Krueger
72e59b49fa
Copy the redaction code from nodes to ways
2012-04-05 13:49:39 +01:00
Matt Amos
67182f824e
Fixing review comments
...
Added scoping for unredacted items, cleaned up authorization and
railsified old_node_controller.
2012-04-05 13:46:40 +01:00
Matt Amos
67dd9e4c9d
Adding first cut of Redactions support
...
Redactions support hiding historical versions of elements and
collecting meta-data about that action together.
2012-04-05 13:46:36 +01:00
Tom Hughes
eaad3611b8
Add functional tests for messages
...
Also fixes various issues in the code discovered while writing
the tests, and adds some named routes for messages.
2012-03-22 23:14:29 +00:00
Tom Hughes
2b037e2892
Test that viewing a block marks it as seen
2012-03-22 19:23:43 +00:00
Tom Hughes
b63a7cb447
Add comments to the user block functional tests
2012-03-22 19:01:50 +00:00
Tom Hughes
38a610fd31
Add functional tests for the user_roles controller
2012-03-20 17:21:13 +00:00
Tom Hughes
5f33656c8d
Get rid of custom CSRF protection for user role changes
...
By restricting role changes to POST requests, which they should be
anyway, we get all the rails CSRF protection for free.
2012-03-20 17:21:13 +00:00
Tom Hughes
e1d873cde9
Add functional tests for user blocks
...
Also fixes various issues in the code discovered while writing
the tests, and adds some named routes for user blocks.
2012-03-19 11:26:02 +00:00
Tom Hughes
02542c96f2
Add some tests for the RichText module
2012-03-17 16:37:21 +00:00
Tom Hughes
b1cb7bb819
Drop the contents of <script> and <style> tags when we strip them
2012-03-17 16:37:01 +00:00
Tom Hughes
7be823bb11
Treat messages received by email as plain text
...
Move creation of a message from an email into the message model and
adjust the logic to treat messages received by email as plain text.
2012-03-17 16:37:00 +00:00
Tom Hughes
561f2f694a
Add preview functionality to rich text controls
2012-03-17 16:36:57 +00:00
Tom Hughes
29a75be373
Removed Osmrender export test
2012-03-16 09:06:17 +00:00
Tom Hughes
21855aa355
Allow POST requests to the home page so OpenSearch works
2012-03-14 13:44:03 +00:00
Tom Hughes
58d889436f
Fix various routing and route generation errors
2012-03-09 23:15:39 +00:00