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
c9fb146608
Restructure notes URLs according to standard rails conventions
2012-03-10 17:04:57 +00:00
Tom Hughes
6aca6cfabf
Merge branch 'master' into openstreetbugs
...
Conflicts:
config/routes.rb
db/structure.sql
2012-03-10 15:30:25 +00:00
Tom Hughes
58d889436f
Fix various routing and route generation errors
2012-03-09 23:15:39 +00:00
Tom Hughes
ef820ade46
Fix some incorrect tests that relied on the default routes
2012-03-09 20:16:18 +00:00
Tom Hughes
90e46a58de
Add routing tests for all supported routes
2012-03-09 19:49:44 +00:00
Tom Hughes
81d6b9dd28
Update note controller tests for new GeoJSON output
2012-03-09 00:42:22 +00:00
Tom Hughes
e660e60966
Merge branch 'master' into openstreetbugs
...
Conflicts:
Gemfile
Gemfile.lock
lib/migrate.rb
2012-03-08 18:23:27 +00:00
Tom Hughes
222cd46a57
Add some more unit tests for traces
2012-03-07 21:12:02 +00:00
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
1340fca8f1
Turn on mass assignment protection
...
Require any attribute that is going to be mass assigned to be
whitelisted, and whitelist those attributes which need it
2012-03-06 08:54:45 +00:00
Tom Hughes
8f7ecf169a
Add a test to check the validity of the translations
2012-03-04 14:24:21 +00:00
Tom Hughes
6ffee1cf4b
Sort node ids in test_ways_for_node
...
The ways_for_node method on the way controller does not guarantee
to return nodes in any particular order so we shouldn't rely on it
doing so in our tests.
2012-01-14 13:35:30 +00:00
Tom Hughes
52e5fa6ad7
Merge branch 'master' into openstreetbugs
...
Conflicts:
app/views/browse/_map.html.erb
app/views/site/index.html.erb
config/initializers/mime_types.rb
config/routes.rb
lib/map_boundary.rb
lib/migrate.rb
lib/osm.rb
vendor/assets/openlayers/OpenLayers.js
2012-01-05 20:15:53 +00:00
Tom Hughes
2b04242462
Add extra login tests for case insensitive usernames
2011-12-13 21:49:25 +00:00
Tom Hughes
b705af948b
Add some password recovery tests
2011-12-13 19:13:34 +00:00
Tom Hughes
5c557cfe7c
Add some tests for updating users
2011-12-13 10:28:17 +00:00
Tom Hughes
13289d4041
Switch from Prototype to jQuery
2011-11-26 00:22:31 +00:00
Matt Amos
64030a40ac
Replace @ with ~ in the shortlink
...
This should help Twitter's horribly broken URL detection algorithm
not screw up shortlinks from OSM.
2011-11-24 22:27:16 +00:00
Tom Hughes
c00dd8c712
Add some OAuth tests
2011-11-19 17:38:06 +00:00
Tom Hughes
7b89dc6349
Make OAuth work again
2011-11-16 21:13:25 +00:00
Tom Hughes
33fb432beb
Update tests to set the username cookie as necessary
2011-11-14 09:42:59 +00:00
Peter Gray
95d899786a
Refactor bounding box code
...
Moved duplicated code into the BoundingBox class, and pass around
BoundingBox objects instead of lists of bounds.
2011-11-14 09:42:57 +00:00
Tom Hughes
44a9a65aa7
Create new diary entry records instead of cloning the fixture
...
Cloning fixtures doesn't seem to do a deep copy in rails 3.1 so the
attribute changes persist into other future cloned copies of the same
fixture. The fix is to create completely new records for each test.
2011-11-14 09:42:52 +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
3ae17e46ad
Replace deprecated response.redirected_to with response.redirect_url
2011-11-14 09:42:50 +00:00
Tom Hughes
4cf73c81ba
Remove monkey patch added for rails 2
2011-11-14 09:42:50 +00:00