aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories
Commit message (Collapse)AuthorAgeLines
* Merge branch 'hotfix/0.20.0.2' into rails-3-developLouise Crow2015-01-07-0/+13
|\
| * Sanitize the contents of HTML attachments before displayLouise Crow2014-12-22-0/+13
| |
* | Merge branch 'restful-admin-routes' into rails-3-developLouise Crow2014-12-18-0/+15
|\ \
| * | Make sure raw_email is initialised with some data.Louise Crow2014-12-18-0/+3
| | | | | | | | | | | | | | | This is to make sure that the file that is used to store the data is created and written to before any attempt to read from it.
| * | Make marking an event as a clarification a RESTful routeLouise Crow2014-12-18-0/+12
| |/
* / Add index method for listing existing holidaysLouise Crow2014-12-15-0/+8
|/
* Add CensorRule factoriesGareth Rees2014-11-18-0/+32
|
* Merge branch 'issues/1778-send-message' into rails-3-developGareth Rees2014-10-17-1/+9
|\
| * Extract initial and followup sending from modelGareth Rees2014-10-17-1/+9
| |
* | Merge branch 'issues/222-category-editing-add-order-interface' into ↵Louise Crow2014-10-14-0/+19
|\ \ | |/ |/| | | rails-3-develop
| * Require heading and category in PublicBodyCategoryLink.Louise Crow2014-10-09-1/+4
| | | | | | | | Update default factory accordingly.
| * fixup! Remove dependence on default public bodies.Louise Crow2014-09-24-56/+6
| |
| * Remove dependence on default public bodies.Louise Crow2014-09-22-0/+66
| | | | | | | | Seems like this could trip us up later. Use factories instead, they're more clearly associated with tests.
* | Create a valid OutgoingMessage factoryGareth Rees2014-09-19-0/+9
|/
* Merge branch 'issues/337-attachment-title' into rails-3-developGareth Rees2014-04-14-0/+6
|\
| * Add AttachmentToHTML libraryGareth Rees2014-03-28-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Extracts the attachment processing from FoiAttachment#body_to_html AttachmentToHTML contains adapters which convert - text/plain - application/pdf - application/rtf Results are returned as an AttachmentHTML::HTML instance which contains the raw HTML and other metadata about the conversion.
* | Merge branch 'issues/1317-holding-pen-spam' into rails-3-developGareth Rees2014-04-07-0/+5
|\ \
| * | Add SpamAddress modelGareth Rees2014-03-26-0/+5
| / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The volume of spam in the holding pen in WDTK has increased. Over a few weeks in January 2014 the pattern was roughly: - 8 were sent "To" the same address, which was a nearly valid old request address - correct hash, but missing the second hyphen. - 1 was sent "To" an invalid request address (nearly correct hash) - 1 was sent "BCC" a valid request address - 1 was sent "BCC" request@whatdotheyknow.com If a spam was sent "To" an old valid request address then it would be rejected. It's not entirely safe to just reject mails to old requests with any hash, because sometimes authorities miss out a digit in the request number, though perhaps simply getting a failure bounce would cause them to check. In any case that wouldn't trivially catch the most frequent case above as it doesn't have an obvious request number. --- We looked at greylisting and configuring the MTA with an RBL. Greylisting was rejected as it would slow down the responsiveness of the application when people email in. This could be revisited if/when emails are parsed through a queue system depending on how we find the performance there. An RBL is already configured, but this ticket refers more to where the email is sent rather than who it came from. --- We elected to: - Create spam_address model - Add code to RequestMailer.receive to check the list of spam addresses and silently discard an incoming mail if it's addressed to one of them - Add page to admin interface for adding/removing spam addresses --- Thanks to Ganesh Sittampalam for the research and Louise Crow for the implementation strategy.
* / Merge branch 'feature/1310-better-track-translation' into rails-3-developLouise Crow2014-04-04-3/+23
|/ | | | | Conflicts: spec/factories.rb
* Split factories in to individual filesGareth Rees2014-03-25-0/+224
Factories are loaded automatically from: - test/factories.rb - spec/factories.rb - test/factories/*.rb - spec/factories/*.rb Keeping factories per-model helps navigation, especially when they get more complex with traits and inheritance.