aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views
Commit message (Collapse)AuthorAgeLines
* Cache frequently accessed request lists.Louise Crow2013-12-19-49/+0
| | | | Make specs a bit more focused, remove view specs - they're not relevant to the new code in their current form and don't seem to merit updating.
* Add public criteria for message event access methodsLouise Crow2013-09-16-44/+44
| | | | | | | get_last_response_event and get_last_outgoing_event are used in various places to determine which events to link to, use in queries etc. Restrict them to refer to the last publicly visible event of the relevant type, and rename them to make that clear.
* Restore the download for hidden requestsLouise Crow2013-09-16-17/+4
| | | | | | This was disabled for hidden requests as the download was by redirect, allowing people who have not been authenticated to conceivably access the download. We'll be moving to send_file instead, so can restore it.
* Reasons that request can be reported now stored in modelMatthew Landauer2013-03-22-1/+1
|
* Rename controller actionsMatthew Landauer2013-03-22-1/+1
|
* Move reporting actions to their own controllerMatthew Landauer2013-03-22-1/+1
|
* Let the user know when the request has already been reportedMatthew Landauer2013-03-22-0/+29
|
* Since we have 3 languages in test the URL should be prefixed with the localeHenare Degan2013-03-16-2/+2
|
* HTML validation was removed in 25ad21e0c93c7e79a5324067401f6c2b0340b9d6Henare Degan2013-03-14-5/+0
|
* Merge remote-tracking branch 'mysociety/develop' into rails-3-developHenare Degan2013-03-14-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/controllers/admin_request_controller.rb app/controllers/admin_track_controller.rb app/controllers/request_controller.rb app/controllers/services_controller.rb app/helpers/link_to_helper.rb app/mailers/request_mailer.rb app/models/application_mailer.rb app/models/info_request.rb app/views/admin_censor_rule/edit.html.erb app/views/admin_censor_rule/new.html.erb app/views/admin_public_body/_form.html.erb app/views/admin_public_body/_locale_selector.html.erb app/views/admin_public_body/_one_list.html.erb app/views/admin_public_body/edit.html.erb app/views/admin_public_body/list.html.erb app/views/admin_public_body/new.html.erb app/views/admin_request/_incoming_message_actions.html.erb app/views/admin_request/edit.html.erb app/views/admin_request/edit_comment.html.erb app/views/admin_request/edit_outgoing.html.erb app/views/admin_request/list.html.erb app/views/admin_request/list_old_unclassified.html.erb app/views/admin_request/show.html.erb app/views/admin_track/_some_tracks.html.erb app/views/admin_track/list.html.erb app/views/admin_user/edit.html.erb app/views/admin_user/list.html.erb app/views/admin_user/show.html.erb app/views/general/_footer.html.erb app/views/general/exception_caught.html.erb app/views/help/contact.html.erb app/views/layouts/default.html.erb app/views/public_body/_alphabet.html.erb app/views/request/_request_listing_single.html.erb app/views/request/_sidebar.html.erb app/views/request/new.html.erb app/views/request/show.html.erb app/views/request_mailer/external_response.rhtml app/views/request_mailer/fake_response.rhtml config/environment.rb config/environments/production.rb config/routes.rb spec/controllers/admin_censor_rule_controller_spec.rb spec/controllers/request_controller_spec.rb spec/controllers/track_controller_spec.rb spec/helpers/link_to_helper_spec.rb spec/mailers/request_mailer_spec.rb spec/models/info_request_spec.rb spec/spec_helper.rb spec/views/public_body/show.html.erb_spec.rb spec/views/request/show.html.erb_spec.rb vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
| * Remove html validation in preparation for moving to html5Matthew Landauer2013-03-07-5/+0
| |
| * Make link to follow up message relativeMatthew Landauer2013-02-15-2/+2
| |
* | Update view test for Rails 3.1Henare Degan2013-03-03-5/+6
| |
* | Rename ALL THE TEMPLATES!!1!!!one!!1!!Henare Degan2013-02-27-0/+0
| | | | | | | | .rhtml is deprecated in favour of .erb in Rails 3
* | Merge branch 'develop' into rails-3-spikeHenare Degan2013-02-15-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/controllers/general_controller.rb app/controllers/track_controller.rb app/models/outgoing_message.rb app/models/public_body.rb app/models/user.rb app/views/general/frontpage.rhtml config/environment.rb config/initializers/inflections.rb config/initializers/mime_types.rb db/migrate/094_remove_old_tags_foreign_key.rb lib/timezone_fixes.rb spec/models/request_mailer_spec.rb spec/views/request/list.rhtml_spec.rb
| * Remove interlock as it's not compatible with Rails 3 and is unmaintainedHenare Degan2013-01-18-2/+0
| |
* | In test we have 3 available locales so these URLs should contain the locale ↵Henare Degan2013-02-08-2/+2
| | | | | | | | in the path
* | Update test to use Webrat matchers instead of removed methodsHenare Degan2013-02-07-2/+8
| |
* | Don't need a regex here, it uses #include?Henare Degan2013-02-07-1/+1
| |
* | path helper should be html safe and fix up view test for rspec 2Matthew Landauer2013-01-25-3/+3
| |
* | Merge remote-tracking branch 'mysociety/develop' into rails-3-spikeMatthew Landauer2013-01-04-1/+17
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile.lock Rakefile app/controllers/request_controller.rb lib/tasks/rspec.rake spec/controllers/services_controller_spec.rb spec/spec_helper.rb spec/views/request/_after_actions.rhtml_spec.rb
| * Only offer download links on publicly visible requestsLouise Crow2012-12-13-1/+17
| |
* | Update render syntax in rspecMatthew Landauer2013-01-04-2/+3
| |
* | Get rid of resetting of ActionController::Routing::Routes.filtersMatthew Landauer2013-01-04-10/+0
| |
* | Remove tests for partials being rendered. Was testing the implementation not ↵Matthew Landauer2013-01-04-10/+0
| | | | | | | | the behaviour
* | url in css selector should have been quoted. Using alternate syntaxMatthew Landauer2013-01-04-2/+2
| |
* | Update test to use Webrat matchers and remove methods that complicate the ↵Henare Degan2012-12-18-35/+20
| | | | | | | | intention of the tests
* | Update view tests to use Webrat matchersHenare Degan2012-12-18-19/+19
| |
* | Update view specHenare Degan2012-12-12-8/+8
| |
* | view replaces templateHenare Degan2012-12-12-3/+3
| |
* | Remove workaroundHenare Degan2012-12-12-2/+0
| |
* | Update view test assignment APIHenare Degan2012-12-12-26/+26
| |
* | Why are we testing a controller in view tests?Henare Degan2012-12-11-1/+1
| |
* | Upgrade remaining matchersHenare Degan2012-12-11-10/+10
| |
* | The have_tag selector is no longer available so use webrat matchersHenare Degan2012-12-11-2/+2
| |
* | The include_text selector is no longer availableHenare Degan2012-12-11-1/+1
| |
* | New way of assigning variables to view specsHenare Degan2012-12-11-6/+6
| |
* | Change to a more common way of calling renderHenare Degan2012-12-11-12/+10
| |
* | Let's get a simple model working. First of all, this is not a Rails modelHenare Degan2012-12-11-1/+1
| |
* | Remove interlock as it's not compatible with Rails 3 and is unmaintainedHenare Degan2012-12-11-2/+0
|/
* Show disclosure log link if availableMatthew Landauer2012-10-22-0/+1
|
* Stub new method introduced by 7a9593aRobin Houston2012-09-28-0/+1
|
* Updating spec for 550f143.Louise Crow2012-09-20-35/+36
|
* Beef up mocksRobin Houston2012-07-16-1/+10
| | | | | Add the user_name and is_external? properties to the InfoRequest mock objects used for view testing, where necessary.
* Beef up mocks with new methodRobin Houston2012-06-07-1/+3
|
* API create_request method is workingRobin Houston2012-06-06-2/+2
| | | | | | "when using the API", it "should create a new request from a POST", AND IT DOES!
* Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkRobin Houston2012-01-20-0/+2
|\
| * Don't allow users to page beyond a certain number of results (because in ↵Seb Bacon2012-01-20-0/+2
| | | | | | | | large databases, the sorting of such large batches causes an extreme slowdown).
* | Be sure to restore RoutingFiltersRobin Houston2012-01-20-2/+12
|/ | | | | | There were some order-dependent test failures that turned out to be caused by the fact that the RoutingFilters were cleared and not subsequently restored, by some tests.
* add encoding magic comments and fix pathsJames McKinney2011-10-16-6/+6
|