aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/user_controller_spec.rb
Commit message (Collapse)AuthorAgeLines
* 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
| * Fix User.should_be_emailed?Robin Houston2011-09-08-3/+3
| | | | | | | | | | The User.should_be_emailed? method needs to be public. It should also be tested.
* | Store user's locale against profile, so we can send them localised track ↵Seb Bacon2011-09-03-0/+13
| | | | | | | | emails. Also internationalize more strings at the same time. Fixes #163.
* | Provide a search function on the user profile pages. Closes #138.Seb Bacon2011-09-01-0/+7
|/
* Anneal brittle testRobin Houston2011-08-24-1/+3
|
* I18n'd hardcoded WhatDoTheyKnow strings, mostly in mails. Use named variable ↵David Cabo2011-08-11-2/+2
| | | | substitution in gettext strings.
* To make tests pass with RawEmails on the filesystem, instead of hacky ↵Seb Bacon2011-07-29-0/+3
| | | | 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-2/+5
|
* Remove the translate_routes plugin, for now, because it appears toRobin Houston2011-07-06-1/+1
| | | | be the cause of several difficult bugs related to routing.
* 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.
* Don't store passwords in post_params.Louise Crow2011-05-16-2/+1
|
* some test fixageSeb Bacon2011-03-11-2/+3
|
* Check that full error message is being displayed without interpolated ↵Louise Crow2011-02-24-1/+1
| | | | attribute name.
* install fixture necessary for test to pass (not sure how this worked ↵Seb Bacon2010-12-30-2/+2
| | | | previously...)
* Test for users.Francis Irving2010-10-18-0/+21
|
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* Fix HTML nestingFrancis Irving2010-07-15-2/+2
|
* Fix HTMLFrancis Irving2010-07-15-4/+6
|
* Change test to work with new action nameFrancis Irving2010-07-14-4/+4
|
* Some more tests for profile photos.Francis Irving2010-07-14-2/+21
|
* Factor out common bits.Francis Irving2010-07-14-9/+11
|
* Get picture posting to workFrancis Irving2010-07-14-3/+7
|
* Test for submitting profile photo. Clean up HTML.Francis Irving2010-07-14-0/+12
|
* Use new name of actionFrancis Irving2010-07-14-2/+2
|