aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/comment_controller_spec.rb
Commit message (Collapse)AuthorAgeLines
* Rename XXX comments with TODO:Gareth Rees2014-06-10-1/+1
| | | | Picks these up in `rake notes` and adds semantic meaning
* Use filter to reject if user is bannedGareth Rees2014-03-13-0/+13
| | | | | | | | | Extract checking whether a user is banned from making Comments on an InfoRequest to a filter in CommentController. Removes responsibility from the #new method. Adds a missing spec.
* Graceful failure of new_comment routeGareth Rees2014-03-13-9/+10
| | | | | | | | | | Fixes https://github.com/mysociety/alaveteli/issues/662 If /annotate/request/:url_title is accessed when comments are disabled an exception is incorrectly thrown. Conditionals should be used for control flow, so now the action redirects to the info_request path and displays a notice.
* integrate_views is render_views RSpec 2Henare Degan2012-12-11-1/+1
|
* Add an option to disable comments on a requestRobin Houston2012-09-19-0/+11
| | | | Closes #30.
* Handle the case where someone wants to add an annotation to a successful ↵Louise Crow2012-08-23-0/+20
| | | | | | external request. Fixes #563.
* Load all fixtures for all testsRobin Houston2012-01-31-1/+0
| | | | | | | | | The ad hoc specification of fixtures has been an ongoing source of bugs in the tests. The straw that broke the camel’s back is that 7c6eb09 requires the fixtures to be loaded in order (i.e. children before their parents), and it would have been a painful process to reorder all the dozens of different fixture lists, but the test system ought to be more reliable this way.
* allow specs to run independentlyJames McKinney2011-10-16-1/+1
|
* Make sure the :public_body_translation fixture is included everywhere the ↵Robin Houston2011-06-09-1/+1
| | | | :public_bodies fixture is, because the PublicBody objects do not work as expected without it.
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* Update changed URL.francis2008-08-29-1/+1
|
* Prevent double posting of comments, and test code for that.francis2008-08-26-23/+8
|
* Test code for comments.francis2008-08-26-0/+76