aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/user_controller_spec.rb
Commit message (Collapse)AuthorAgeLines
* Whitelist UserController#signup params0.19.0.3hotfix/0.19.0.3Gareth Rees2014-09-09-0/+10
| | | | Protects from mass-assignment exploit attempts
* Rename XXX comments with TODO:Gareth Rees2014-06-10-4/+4
| | | | Picks these up in `rake notes` and adds semantic meaning
* Display batch requests for user on 'my requests' pageLouise Crow2013-12-04-2/+4
| | | | This is the most rudimentary possible way to give them access to the batch request urls, pending #1239
* Refactor specs to make adding batch changes easier.Louise Crow2013-12-04-30/+63
|
* Handle the case of a name that hits the character limits and has been ↵Louise Crow2013-07-29-5/+25
| | | | suffixed with a number.
* Switch routing-filter (which takes locale out of the params and puts it in ↵Louise Crow2013-07-18-19/+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.
* Don't call out to external urls during controller testsLouise Crow2013-06-20-0/+10
|
* Add call to load_raw_emails_data to fix dependency on raw emails exposed in ↵Louise Crow2013-05-13-0/+1
| | | | https://travis-ci.org/mysociety/alaveteli/jobs/7126060.
* Be a bit more exactHenare Degan2013-03-05-1/+1
|
* Use built in fixture_file_uploadHenare Degan2013-03-04-5/+2
|
* This is cast to a string in Rails 3.1Henare Degan2013-03-04-1/+1
|
* Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-1/+1
|
* Correct syntax and reload for Ruby 1.9.3Henare Degan2013-02-21-1/+1
|
* This parameter is typecast in Rails 3Henare Degan2013-02-07-1/+1
|
* mail from_addrs now doesn't return the nameMatthew Landauer2013-01-29-1/+1
|
* errors returns an array nowMatthew Landauer2013-01-29-1/+1
|
* params_from doesn't exist anymoreMatthew Landauer2013-01-29-2/+2
|
* When matching mail.body with regex cast to string firstMatthew Landauer2013-01-29-3/+3
|
* Replace use of response.should send_email with checking ↵Matthew Landauer2013-01-29-4/+4
| | | | ActionMailer::Base.deliveries
* Replace use of have_tag with have_selector from webratMatthew Landauer2013-01-28-1/+1
|
* Disable routing filter in tests by using RoutingFilter.active rather than ↵Matthew Landauer2013-01-25-15/+10
| | | | writing to ActionController::Routing::Routes.filters
* integrate_views is render_views RSpec 2Henare Degan2012-12-11-9/+9
|
* Use new function that copies existing xapian index in spec setup where a ↵Louise Crow2012-11-21-35/+35
| | | | clean copy of the xapian index with fixtures loaded is required.
* Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-1/+1
|
* Fix test breakage (really we should use a test app.po rather than the real ↵Seb Bacon2012-06-14-1/+1
| | | | one for testing!)
* Test for user turning email alerts off. Also includes a fix not to rely on ↵Seb Bacon2012-05-30-0/+9
| | | | HTTP_REFERER for subsequent redirect.
* Make it possible to view other people's activities on their own walls.Seb Bacon2012-05-30-0/+6
|
* Test for the user's wall.Seb Bacon2012-05-30-0/+20
|
* Merge jpmckinney/bundlerSeb Bacon2012-02-15-2/+0
|
* Let admin users use auto-login URLsRobin Houston2012-02-06-0/+37
| | | | | | Don't change logged-in user from an admin when visiting a auto-login URL. Closes #306.
* 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-10/+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.
* More test data, and fix testsRobin Houston2012-01-29-2/+6
| | | | | | Add some more test data, and fix the tests to accommodate both this new test data and the fact that raw emails are now correctly loaded into the test environment.
* Load all raw emails for testingRobin Houston2012-01-29-1/+1
| | | | | | | | | | | 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.
* Refactor test code so new test data can be addedRobin Houston2012-01-26-7/+10
| | | | | | | | Previously many of the tests made assumptions about the global structure of the test data set: the total number of requests, for example, or the names of all public bodies. This makes it difficult to add to the test data. This change is intended to make the test data easier to extend by eliminating such global assumptions.
* Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkSeb Bacon2012-01-25-4/+21
|\ | | | | | | | | Conflicts: app/controllers/request_controller.rb
| * More better test isolationRobin Houston2012-01-24-0/+1
| | | | | | | | | | Towards #361. Fixes: spec/models/xapian_spec.rb spec/controllers/user_controller_spec.rb
| * Be sure to restore RoutingFiltersRobin Houston2012-01-20-4/+20
| | | | | | | | | | | | 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.
* | Return a 404 for missing user profile pictures. Fixes #363Seb Bacon2012-01-24-0/+7
|/
* Fix bug introduced in cec2c545e0a10e0641c4ee67839c88d872b394b8, related to ↵Seb Bacon2012-01-13-1/+1
| | | | issue #343.
* Accounts using expired PostRedirects were still causing 500 errors. Fixes ↵Seb Bacon2012-01-12-2/+3
| | | | #334 (again)
* Don't give an error to users with an invalid postredirect token. Closes #334.Seb Bacon2012-01-11-0/+13
|
* Make test less brittleSeb Bacon2012-01-06-2/+2
|
* Reintroduce a "my requests" link. Fixes #289.Seb Bacon2012-01-02-0/+10
|
* Merge remote-tracking branch 'jpmckinney/pre1.9' into developSeb Bacon2011-11-24-2/+3
|\ | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb
| * call #first on from_addrs and to_addrs before calling #to_sJames McKinney2011-10-16-2/+2
| |
| * add encoding magic comments and fix pathsJames McKinney2011-10-16-0/+1
| |
* | allow specs to run independentlyJames McKinney2011-10-16-1/+1
|/
* fix fixtures order to avoid postgresql foreign key errorsJames McKinney2011-10-11-1/+1
|
* Merge branch 'wdtk' into developRobin Houston2011-09-08-3/+3
|\ | | | | | | | | | | Conflicts: config/general.yml-example spec/models/track_mailer_spec.rb