aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeLines
...
| * | | Add an action to run the checksGareth Rees2014-09-25-0/+45
| | | |
| * | | Add some initial health checksGareth Rees2014-09-25-0/+84
| | | |
| * | | Add HealthCheck and HealthCheckableGareth Rees2014-09-25-0/+205
| |/ / | | | | | | | | | | | | | | | | | | HealthCheck is a basic library for creating health checks. HealthCheck works with any class so long as it includes HealthCheckable and defines the `check` method.
* / / Create a valid OutgoingMessage factoryGareth Rees2014-09-19-0/+9
|/ /
* | Merge branch 'issues/1833-censor-rule-validation' into rails-3-developGareth Rees2014-09-15-6/+27
|\ \
| * | Fix regressions in CensorRule specsGareth Rees2014-09-12-3/+12
| | | | | | | | | | | | Added extra validations to match Postgres constraints
| * | Add correct validations to CensorRuleGareth Rees2014-09-12-3/+15
| | |
* | | Merge remote-tracking branch 'origin/hotfix/0.19.0.3' into rails-3-developGareth Rees2014-09-15-0/+10
|\ \ \ | | |/ | |/|
| * | Whitelist UserController#signup params0.19.0.3hotfix/0.19.0.3Gareth Rees2014-09-09-0/+10
| | | | | | | | | | | | Protects from mass-assignment exploit attempts
* | | Merge branch 'hotfix/0.19.0.1' into rails-3-developLouise Crow2014-09-04-0/+48
|\| | | |/ |/|
| * Add integration spec.0.19.0.1hotfix/0.19.0.1Louise Crow2014-09-01-0/+31
| |
| * Return a list of all cache directories for the requestLouise Crow2014-09-01-2/+7
| |
| * Move method to model to make it more testable, add spec.Louise Crow2014-09-01-0/+12
| |
* | Fix test failures in PublicBody overrideable CSV import specsSteven Day2014-08-22-2/+2
| |
* | Make csv import fields a class attribute that can be overridenSteven Day2014-08-22-0/+52
|/
* Merge branch 'issues/1181-destroy-external-request' into rails-3-developGareth Rees2014-08-21-0/+6
|\
| * Use different flash for fully_destroy external InfoRequestGareth Rees2014-08-18-0/+6
| | | | | | | | Uses a different flash message to avoid trying to fetch a non existent user record
* | Merge branch 'issues/1744-view-as-html-stylesheet' into rails-3-developGareth Rees2014-08-21-0/+1
|\ \
| * | Add charset to view-as-html templateGareth Rees2014-08-19-0/+1
| |/
* / Add honeypot spam protection to body update formGareth Rees2014-08-21-2/+16
|/ | | | | Intercepts the request and redirects to the homepage if the comment field is filled in on the public body update form.
* Use since_event_id to restrict query, not just data displayed.Louise Crow2014-08-11-1/+10
| | | | | Allow the same params (since_event_id, since_date) for both formats. There doesn't seem to be a particular reason not to treat them the same.
* whitespacelizconlan2014-07-28-436/+434
| | | | includes various code layout fixes
* Sending an invalid state value to add_correspondence now aborts the entire ↵lizconlan2014-07-28-29/+40
| | | | operation
* Refactor state update API, better error handlinglizconlan2014-07-28-10/+12
| | | | Filters; more 403s, fewer 500s; added logging; less duplication
* Extend add_correspondence API method to optionally accept a state paramlizconlan2014-07-28-79/+135
|
* New API method for updating request statelizconlan2014-07-28-277/+357
|
* Merge branch 'issues/1415-bulk-update-public-bodies' into rails-3-developGareth Rees2014-06-25-0/+145
|\
| * Move PublicBody domain logic from controllerGareth Rees2014-06-06-0/+14
| | | | | | | | | | | | Moves the magic 'site_administration' tag logic to the PublicBody model. Easier to make the string passed to `PublicBody#has_tag?` configurable if we want to allow this to be set per install.
| * Add PublicBodyController#list_all_csv specsGareth Rees2014-06-06-0/+17
| | | | | | | | | | - Shouldn't include non-visible bodies - Shouldn't include internal admin bodies
| * Extract public body CSV export to its own classGareth Rees2014-06-06-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - SRP: Do one thing. PublicBodyCSV converts a collection of bodies in to a CSV formatted String - Adds some parenthesis around parameters in PublicBodyController#list_all_csv - Let the controller handle what records to pull out for the CSV export Arguably this doesn't really need to be anything to do with PublicBody, but it allows us to set nice defaults.
* | Handle unhelpful stemmingGareth Rees2014-06-25-1/+21
| | | | | | | | | | | | | | Stemming returns 'bore' as the word to highlight which can't be matched in the original phrase. Also removes duplicates from the results
* | Add spec for highlight_and_excerptGareth Rees2014-06-25-1/+49
| |
* | Use regex based highlightingGareth Rees2014-06-25-4/+13
| |
* | Add helper to highlight and excerpt by regexGareth Rees2014-06-25-0/+218
| | | | | | | | | | | | | | Backport of https://github.com/rails/rails/pull/11793/ Contains integration tests to check that it works as expected with ActsAsXapian.
* | Improve ActsAsXapian::Search#words_to_highlightGareth Rees2014-06-16-5/+35
| | | | | | | | | | | | - Ignore stopwords - Use Stemming - Wrap words with regex for use in a highlighter (optional)
* | Fix typoGareth Rees2014-06-16-2/+2
| | | | | | | | Fixes typo in 6bd0bfe
* | Merge branch 'replace-xxx-todo' into rails-3-developGareth Rees2014-06-16-25/+25
|\ \
| * | Rename XXX comments with TODO:Gareth Rees2014-06-10-25/+25
| |/ | | | | | | Picks these up in `rake notes` and adds semantic meaning
* | Merge branch 'issues/788-notification-email-cache-buster' into rails-3-developGareth Rees2014-06-16-47/+147
|\ \
| * | Remove DateTimeHelper#year_from_dateGareth Rees2014-06-05-17/+0
| | | | | | | | | | | | DateTime, Date and Time all have #year methods
| * | Minor tidying of DateTimeHelper and specsGareth Rees2014-06-05-4/+4
| | |
| * | Add specs for DateTimeHelper#simple_timeGareth Rees2014-06-05-0/+18
| | |
| * | Add specs for DateTimeHelper#year_from_dateGareth Rees2014-06-05-0/+16
| | |
| * | Move date helpers to DateTimeHelperGareth Rees2014-06-05-47/+54
| | |
| * | Remove duplication from new correspondence urlsGareth Rees2014-06-05-7/+15
| | |
| * | Add cache-busting to request response notificationGareth Rees2014-06-04-1/+69
| |/ | | | | | | | | | | Users get a new response email, click the link, but get a cached page. This is a quick fix to ensure they always see the response when clicking the link.
* | Merge remote-tracking branch 'origin/hotfix/0.18.0.3' into rails-3-developLouise Crow2014-06-06-0/+11
|\ \
| * | Handle converting empty RTF fileshotfix/0.18.0.3Gareth Rees2014-06-06-0/+11
| | | | | | | | | | | | Fixes https://github.com/mysociety/alaveteli/issues/1563
* | | Merge branch 'hotfix/0.18.0.2' into rails-3-developLouise Crow2014-06-06-0/+18
|\ \ \ | |_|/ |/| |
| * | Allow a message with more than one event to be destroyed.hotfix/0.18.0.2Louise Crow2014-06-06-0/+18
| |/ | | | | | | Fixes #1569