aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/censor_rule_spec.rb
Commit message (Collapse)AuthorAgeLines
* 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
|
* Re-annotate models with database fieldsLouise Crow2013-09-16-0/+17
|
* Fix deprecation warningsHenare Degan2013-01-23-3/+3
| | | | | * Errors#on have been deprecated * Errors#[] now always returns an Array
* Change syntax - this looks like a test to meHenare Degan2013-01-23-1/+1
|
* In 447e4af we started adding the error to each attribute so start testing eachHenare Degan2013-01-23-4/+10
|
* Add warning about regex censor rules.Louise Crow2012-08-14-1/+1
| | | | Fix spec to accommodate validation of text presence.
* Validate presence of text to replace in censor rules.Louise Crow2012-08-14-0/+6
|
* Add basic validation for regexp censor rules that a valid regexp can be ↵Louise Crow2012-08-14-1/+35
| | | | created with the text of the rule.
* Make global validation work correctly for regex censor rules.Louise Crow2012-08-14-2/+9
|
* Handle regexp rules when running censor rules on binary files.Louise Crow2012-08-14-6/+18
|
* Add concept of global censor rules as orthogonal to regex censor rules. ↵Louise Crow2012-08-14-27/+100
| | | | Apply global rules to every request, not regex rules.
* Support regular expressions in CensorRules; also support 'global' ↵Seb Bacon2012-07-13-1/+41
| | | | CensorRules that aren't attached to a User or Request or Public Body (but don't expose this in the admin UI). Fixes #33
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* Change censor rules to apply to strings in place, so using less memory on ↵francis2009-09-15-0/+25
large strings. Add lots of test code for censor rules.