aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/user_controller_spec.rb
Commit message (Collapse)AuthorAgeLines
* 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
|
* Merge branch 'master' into francis-profile-photoFrancis Irving2010-07-13-13/+167
|\ | | | | | | | | | | | | Conflicts: app/views/user/show.rhtml commonlib spec/controllers/user_controller_spec.rb
| * Allow emails case insensitively.Francis Irving2010-03-20-0/+12
| |
| * Only change email address when they confirm the email, so there is noFrancis Irving2010-03-10-11/+42
| | | | | | | | security leak that someone is registered with an email
| * Use bob instead of silly as test user. Make it behave better if existingFrancis Irving2010-03-10-15/+47
| | | | | | | | email changed to.
| * Slight comment changeFrancis Irving2010-03-10-1/+1
| |
| * Form for changing your email addressFrancis Irving2010-03-10-0/+70
| |
| * Rename signchange to signchangepasswordFrancis Irving2010-03-10-10/+10
| |
| * Fix remember me.Francis Irving2009-12-22-0/+9
| |
* | Part of profile photoFrancis Irving2009-11-01-0/+10
| |
* | Pad out a couple of incomplete tests that were there already.Francis Irving2009-11-01-0/+16
|/
* Make number of days explicit.francis2009-10-26-1/+1
|