aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeLines
...
| * | Remove dependence on default public bodies.Louise Crow2014-09-22-16/+84
| | | | | | | | | | | | Seems like this could trip us up later. Use factories instead, they're more clearly associated with tests.
| * | Validation of display order, default setting callbacks.Louise Crow2014-09-22-14/+74
| | |
| * | Allow deletion of public body categories with associatied bodieslizconlan2014-09-22-9/+1
| | |
| * | Add display order to public body categories and headingslizconlan2014-09-22-53/+112
| | |
| * | Reinstate automatic loading of categories on get if no categories definedlizconlan2014-09-22-1/+12
| | |
| * | Enable admins to link public body categories to headingslizconlan2014-09-22-0/+14
| | |
| * | Restrict category_tag edits to empty public body categorieslizconlan2014-09-22-0/+18
| | |
| * | Basic category admin screenlizconlan2014-09-22-0/+275
| | |
| * | Use translation tables for PublicBodyCategory and PublicBodyHeadinglizconlan2014-09-22-5/+33
| | |
| * | Replace existing PublicBodyCategories functionality with db models ↵lizconlan2014-09-22-4/+28
| | | | | | | | | | | | PublicBodyCategory and PublicBodyHeading
* | | Merge branch 'issues/1827-healthcheck' into rails-3-developGareth Rees2014-09-30-0/+316
|\ \ \
| * | | Replace initial checks with DaysAgoCheckGareth Rees2014-09-25-84/+66
| | | |
| * | | 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