Commit graph

7787 commits

Author SHA1 Message Date
Tom Hughes
6ee54aff10 Set canonical port based on protocol 2017-03-22 19:28:57 +00:00
Tom Hughes
23f2ac99df Remove various osm.org email addresses from example configuration 2017-03-22 19:25:47 +00:00
Tom Hughes
b78bb9f631 Merge remote-tracking branch 'openstreetmap/pull/1496' 2017-03-22 19:19:59 +00:00
Tom Hughes
05beafb2f3 Merge remote-tracking branch 'openstreetmap/pull/1495' 2017-03-22 19:11:04 +00:00
Tom Hughes
1b9ea430d1 Make the publisher URL configurable, with no default 2017-03-22 18:42:58 +00:00
Tom Hughes
bf8959cdc2 Add server_protocol configuration option 2017-03-22 18:22:24 +00:00
Andy Allan
4ed1607784 Use node and old_node factories for redaction model tests. 2017-03-22 18:19:16 +00:00
Tom Hughes
24271b75bd Use canonical-rails gem to generate canonical URLs 2017-03-22 18:16:53 +00:00
Andy Allan
1a3130ec61 Create a node factory, and use it for most node model tests 2017-03-22 17:50:10 +00:00
Tom Hughes
ce209c8c4f Set server_url in the test environment 2017-03-22 17:24:28 +00:00
Tom Hughes
baa3b3188d Comment out server_url in the default configuration 2017-03-22 17:19:08 +00:00
Tom Hughes
419edf951d Add a canonical URL to the head 2017-03-22 17:14:55 +00:00
Andy Allan
2d3ca85751 Use old_node factory for OldNode model tests.
The valid/invalid tests were simplified, since there is little to be
gained from inserting (invalid) nodes into the database and comparing
the node with another copy of itself.
2017-03-22 17:10:48 +00:00
Andy Allan
88ca1f9ed8 Rework the changeset helper tests to use factories. 2017-03-22 11:42:29 +00:00
Andy Allan
24cd3af31e Use changeset factory for factory associations
One test needed updating since it assumed the comments were being
created on a particular changeset.
2017-03-22 11:09:52 +00:00
Andy Allan
56752ac02a Create a changeset factory, and use it for model tests. 2017-03-22 10:47:24 +00:00
Andy Allan
48be941840 Remove the api_fixtures call from changeset model tests, since they do not need the fixtures. 2017-03-22 10:40:13 +00:00
Niklas Laxström
6b6d922239 Localisation updates from https://translatewiki.net. 2017-03-20 07:38:24 +01:00
Tom Hughes
834a821d3c Merge remote-tracking branch 'openstreetmap/pull/1492' 2017-03-16 19:02:35 +00:00
Andy Allan
6331e34638 Remove the link between the redaction owner and the user doing the redaction in tests. 2017-03-16 10:21:25 +00:00
Niklas Laxström
9f048fe14b Localisation updates from https://translatewiki.net. 2017-03-16 08:18:33 +01:00
Andy Allan
d2998065dc Use redactions factory for old_way controller tests 2017-03-15 18:04:58 +00:00
Tom Hughes
3d7fd13357 Adjust rubocop threshold 2017-03-15 17:57:46 +00:00
Andy Allan
2cdc2e1cd8 Use redactions factory for old_node controller tests. 2017-03-15 17:50:57 +00:00
Tom Hughes
671467a6dd Merge remote-tracking branch 'openstreetmap/pull/1491' 2017-03-15 17:37:13 +00:00
Andy Allan
99d2bbccbb Use redaction factory for old_relation controller tests. 2017-03-15 17:13:47 +00:00
Andy Allan
5422c56301 Fix typos in assertion messages. 2017-03-15 17:06:29 +00:00
Andy Allan
a0899d1b0b Use redactions factory in redaction controller test. 2017-03-15 17:01:41 +00:00
Andy Allan
006627789f Create a redactions factory and use for model tests. 2017-03-15 16:24:39 +00:00
Andy Allan
5370f9c6a7 Refactor the oauth integration test to avoid using user fixtures. 2017-03-15 16:13:04 +00:00
Andy Allan
a6a1a6baa5 Use user factory for user_terms_seen integration test. 2017-03-15 15:53:47 +00:00
Andy Allan
1096bccf98 Use user factories for some changeset_controller tests.
Others are tightly interwoven with the fixtures and will be tackled seperately.
2017-03-15 15:41:42 +00:00
Tom Hughes
8ccd7364cd Merge remote-tracking branch 'openstreetmap/pull/1488' 2017-03-15 14:22:59 +00:00
Andy Allan
8d2d6e1a52 Use a pending user for testing password resets. 2017-03-15 14:22:04 +00:00
Andy Allan
3d8dc64b9c Use users factory for user_controller tests. 2017-03-15 11:56:36 +00:00
Tom Hughes
7c9229fbfc Throw an exception if adding a note comment fails 2017-03-13 14:49:16 +00:00
Christian Stadelmann
cd922a99f8 Make search use HTTPS automatically
Currently users end up having a HTTP search function even if they
install it to their browsers from the HTTPS site. This is a unexpected
reduction in privacy.

Since search requests are private data they should be sent via HTTPS.

Closes #936
2017-03-13 11:22:19 +00:00
Andy Allan
17ff182c96 Build pending users via factory 2017-03-13 10:20:06 +00:00
Simon Poole
9606e440bc Return maximum size of bounding box for note retrieval 2017-03-13 08:53:49 +01:00
Niklas Laxström
c2ee604858 Localisation updates from https://translatewiki.net. 2017-03-13 08:21:19 +01:00
Tom Hughes
4ac9ed6f14 Improve styling of flash messages on the front page 2017-03-10 16:46:29 +00:00
Tom Hughes
5cdb835de3 Show offline/readonly messages as normal flash messages 2017-03-10 16:30:04 +00:00
Tom Hughes
ae4c00da8c Merge remote-tracking branch 'openstreetmap/pull/1484' 2017-03-10 15:58:57 +00:00
Tom Hughes
47a5d2f37d Add some whitespace 2017-03-10 15:34:34 +00:00
Andy Allan
113506bf51 Use user factories for user_login integration tests.
The display_name logins were reworked to use downcase since the
factories supply users with an already-title-cased display_name.

The tests were also renamed to align better with the purpose of the
test rather than the name of the fixture used.
2017-03-10 14:53:36 +00:00
Andy Allan
b690feba15 Use user factories for page_locale integration tests. 2017-03-10 14:53:19 +00:00
Andy Allan
dfbb952707 Use user factories for user_block integration tests. 2017-03-10 14:48:29 +00:00
Andy Allan
4165bc0362 Use user factories for user_roles integration tests. 2017-03-10 11:02:40 +00:00
Andy Allan
1a1d924ae0 Use user factory for user_creation test. 2017-03-10 10:57:46 +00:00
Andy Allan
5de04a8cc2 Use user factory for application_helper tests. 2017-03-10 10:53:00 +00:00