aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/request
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.
* Since we have 3 languages in test the URL should be prefixed with the localeHenare Degan2013-03-16-2/+2
|
* 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
| * 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
| |
* | 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
| |
| * Revert "Revert "Merge remote-tracking branch 'henare_github/patch-1'""Louise Crow2012-10-17-35/+36
| | | | | | | | This reverts commit 211fe84dc40d97df8aa8724906d9170ed4f78477.
| * Revert "Merge remote-tracking branch 'henare_github/patch-1'"Louise Crow2012-10-09-36/+35
| | | | | | | | | | | | | | Mistakenly merged into master. Please note that we'll want to merge this work into master on the next release, at which point we'll want to revert this reversion in order that the changes are properly re-applied. This reverts commit 54281fd50c3271835a54ab4bc08d40da09d643ee, reversing changes made to 793ca358c37458e6cc4385d2366621aaee93a25e.
* | 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-22/+22
| |
* | Remove interlock as it's not compatible with Rails 3 and is unmaintainedHenare Degan2012-12-11-2/+0
|/
* 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/+2
|
* 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-4/+4
|
* Fix test failures resulting from commit 0f0854cd60aebde1b4a69e455ee40686c4ab0353Seb Bacon2011-09-15-26/+1
|
* work around TestRequest bug to get tests to passSeb Bacon2011-08-29-4/+2
|
* changes to get tests to pass with IZ fork and new routing-filter gemSeb Bacon2011-07-11-1/+3
|
* Make view tests work with interlock.Francis Irving2010-09-14-9/+11
|
* Reflect change to show photosFrancis Irving2010-07-18-2/+4
|
* Mock the new is_school? functionFrancis Irving2009-12-16-1/+2
|
* Fixing specs - stub render_partial not renderLouise Crow2009-12-06-11/+11
|
* hecks prominence too, to show message if hidden for super userfrancis2009-06-30-2/+3
|
* Text change to encourage people to update the status of old requestslouise2009-04-27-1/+1
|
* use the new is_incoming_message? etc methodstony2009-04-23-3/+3
|
* Making "update status" link and other text more consistent with the ability ↵louise2009-04-15-6/+53
| | | | of anyone to update the status of an old unclassified request
* Adding form for anyone logged in to update the status of a request that is ↵louise2009-04-14-8/+34
| | | | old and unclassified
* Moving view specs to more standard place, moving helper method inside spec ↵louise2009-04-14-0/+50
| | | | scope - will run more reliably when specs run in different orders
* Removed debug linelouise2009-04-07-1/+0
|
* Allow request owners or admins to update the status of a request at any time ↵louise2009-04-07-2/+219
| | | | from the main request page