aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/track_controller_spec.rb
Commit message (Collapse)AuthorAgeLines
* Don't allow redirects to another host.Louise Crow2013-10-02-0/+33
|
* Switch routing-filter (which takes locale out of the params and puts it in ↵Louise Crow2013-07-18-5/+0
| | | | the URL) off by default in model, controller, and helper tests. This means we can supply the locale as a param. Turn it on specifically for a couple of controller tests that test routing, and change other url localization tests into integration tests.
* We're assuming feed urls without format suffixes should serve up atom/xml, ↵Louise Crow2013-06-05-0/+12
| | | | so ignore any format from content negotiation in favour of that default.
* Make sure Atom feeds are served with content type application/atom+xmlMark Longair2013-05-29-0/+1
| | | | Fixes #961
* Merge remote-tracking branch 'mysociety/develop' into rails-3-developHenare Degan2013-03-14-2/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Stop using main_url to generate absolute urls for the main siteMatthew Landauer2013-02-15-2/+1
| |
* | Fix track searches by changing the way the routing worksHenare Degan2013-03-05-1/+1
| |
* | Cast mail.body to string before matching with a regexMatthew Landauer2013-01-31-1/+1
| |
* | Disable routing filter in tests by using RoutingFilter.active rather than ↵Matthew Landauer2013-01-25-3/+2
| | | | | | | | writing to ActionController::Routing::Routes.filters
* | integrate_views is render_views RSpec 2Henare Degan2012-12-11-4/+4
|/
* Use new function that copies existing xapian index in spec setup where a ↵Louise Crow2012-11-21-7/+7
| | | | clean copy of the xapian index with fixtures loaded is required.
* Fail with NotFound if request slug doesn't existRobin Houston2012-08-20-1/+14
| | | | Closes #554.
* Fix tests that broke as result of new flag to control if email alerts should ↵Seb Bacon2012-05-30-0/+2
| | | | be sent
* Redirect people to more user-friendly search results page (where possible) ↵Seb Bacon2012-05-11-2/+10
| | | | after they've "followed" search results. Fixes #487
* Filter public body tracks by event typeRobin Houston2012-05-03-0/+29
| | | | | Add the facility to filter the public body feed by event type using a query string parameter, e.g. event_type=sent.
* Merge jpmckinney/bundlerSeb Bacon2012-02-15-2/+0
|
* Return 404 for /feed/user/no_such_userRobin Houston2012-02-03-0/+5
| | | | Fixes #407.
* Eliminate trailing spaces in test namesRobin Houston2012-02-03-1/+1
| | | | Really, what was that about?
* Load all fixtures for all testsRobin Houston2012-01-31-3/+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.
* Load all raw emails for testingRobin Houston2012-01-29-3/+3
| | | | | | | | | | | Previously there was just one raw email, and the test code relied on that fact. Generalise it to handle multiple raw emails. This change causes a number of tests to fail, because it exposes failures that should have happened when the second raw email was added but were masked by the fact that the text of this second raw email was never loaded. These failures will be fixed in the next commit.
* Be sure to restore RoutingFiltersRobin Houston2012-01-20-1/+6
| | | | | | 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.
* Merge remote-tracking branch 'jpmckinney/pre1.9' into developSeb Bacon2011-11-24-1/+1
|\ | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb
| * call #first on from_addrs and to_addrs before calling #to_sJames McKinney2011-10-16-1/+1
| |
* | allow specs to run independentlyJames McKinney2011-10-16-3/+3
|/
* fix fixtures order to avoid postgresql foreign key errorsJames McKinney2011-10-11-3/+3
|
* Merge branch 'wdtk' into developRobin Houston2011-09-08-1/+1
|\ | | | | | | | | | | Conflicts: config/general.yml-example spec/models/track_mailer_spec.rb
| * yet another missing fixture declaration!Robin Houston2011-09-08-1/+1
| |
* | Remove hardcoded site name from testDavid Cabo2011-09-03-1/+1
| |
* | Store user's locale against profile, so we can send them localised track ↵Seb Bacon2011-09-03-1/+14
|/ | | | emails. Also internationalize more strings at the same time. Fixes #163.
* Fix up missing fixtures (causing failures dependent on order the tests were ↵Seb Bacon2011-08-10-8/+6
| | | | funr). Also tidy up raw_email setup code to match everywhere.
* To make tests pass with RawEmails on the filesystem, instead of hacky ↵Seb Bacon2011-07-29-0/+5
| | | | dependency on existence of text_binary field in raw_emails model, rewrite tests (and their fixtures) to explicitly load data from FS when raw_emails are used.
* changes to get tests to pass with IZ fork and new routing-filter gemSeb Bacon2011-07-11-0/+2
|
* 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.
* further test fixageSeb Bacon2011-04-01-2/+2
|
* Reindexing xapian before running track alert specLouise Crow2011-03-10-2/+2
|
* Mock a few more things so that we're not actually saving to the db.Louise Crow2011-02-23-12/+18
|
* Reindexing xapian before running track alert specLouise Crow2011-02-17-0/+4
|
* Show more appropriate info about users/bodies everywhere in JSON.Francis Irving2010-10-20-9/+9
|
* Test for JSON version of atom feeds.Francis Irving2010-10-18-1/+46
|
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* Need to set time now in test.Francis Irving2010-06-09-1/+12
|
* Make comment clearerFrancis Irving2010-06-09-2/+3
|
* Use mocks instead of fixturestony2009-03-19-5/+5
|
* Set up test info request and user beforehandtony2009-03-19-4/+9
|
* We don't care what actual count is, just that it's increased by onetony2009-03-19-2/+2
|
* Make it redirect to email subscription # reference in user page when youfrancis2009-03-17-1/+8
| | | | click unsubscribe link in email.
* It didn't seem to rebuild unless I put it in begin like this.francis2009-03-16-1/+5
|
* Call rebuild_xapian_index in more tests to reduce order dependencytony2009-03-13-1/+2
|
* Fix up test code, and some bugs relating to splitting out raw_email data.francis2008-09-22-3/+3
|
* Fix bug in call to sort_by_ascending (boolean || true is always true!) in ↵francis2008-09-12-3/+3
| | | | | | acts_as_xapian Alter WDTK code to use correct meaning of ascending in Xapian.