aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/user_spec.rb
Commit message (Collapse)AuthorAgeLines
* safe_mock_model doesn't seem to be needed, also tested in Ruby 1.9Henare Degan2012-12-12-4/+4
|
* Restore removed testing config param, remove spec for unset param - I think ↵Louise Crow2012-10-25-9/+0
| | | | not really worth it.
* Given that MAX_REQUESTS_PER_USER_PER_DAY is documented as an optional ↵Louise Crow2012-10-25-49/+58
| | | | variable, but that commonlib/rblib/config.rb does not allow nil defaults, replace nil value clause (which can never be reached) with blank value condition(blank now returned by default by lib/configuation.rb)
* Update testRobin Houston2012-01-31-1/+1
| | | | Update test to take account of change 76fd5f9.
* 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.
* Merge remote-tracking branch 'jpmckinney/pre1.9' into developSeb Bacon2011-11-24-4/+4
|\ | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb
| * add safe_mock_model to safely handle #to_ary calls in 1.9James McKinney2011-10-17-4/+4
| |
* | allow specs to run independentlyJames McKinney2011-10-16-3/+3
|/
* Fix User.should_be_emailed?Robin Houston2011-09-08-0/+12
| | | | | The User.should_be_emailed? method needs to be public. It should also be tested.
* Fix “email bounced” recordingRobin Houston2011-09-07-0/+11
| | | | | Add tests for the User.record_bounce_for_email method and (not coincidentally) make it actually work.
* User's display name should indicate if they've been banned. Fixes #100.Seb Bacon2011-08-01-0/+18
|
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* Note that profile photo isn't finished.Francis Irving2009-12-07-2/+2
|
* Change censor rules to apply to strings in place, so using less memory on ↵francis2009-09-15-3/+3
| | | | | | large strings. Add lots of test code for censor rules.
* Some more URL name/title tests.francis2009-09-07-0/+16
|
* Some (as yet unused) profile photo code done on a whim on the train while itfrancis2009-08-05-0/+32
| | | | was my birthday.
* Various test fixes.francis2009-04-22-6/+9
|
* Allowing xapian reindexing to be skipped if a no_xapian_reindex flag is set ↵louise2009-04-14-3/+30
| | | | on the model
* Adding a flag to allow user model to be saved without reindexing associated ↵louise2009-04-09-0/+42
| | | | models
* TMail rebuilds address when constructing emails. Move our morefrancis2009-04-08-0/+20
| | | | | | aggressive quoting rule into a TMail monkey patch proper so it is always called when constructing emails, and remove the hacky function (Address.encode_quoted_string) it used to call in special places
* Allow request owners or admins to update the status of a request at any time ↵louise2009-04-07-6/+6
| | | | from the main request page
* Add a convenience method User.requires_admin_power? for determining whether ↵louise2009-04-06-1/+21
| | | | a user has the power to edit "requires_admin" requests
* Add admin + banned tests to Usertony2009-03-22-0/+18
|
* Test for specific errors in Usertony2009-03-22-3/+3
|
* add test for not allowing a user to use an email address as their nametony2009-03-20-1/+8
|
* Add tests for broken case of saving info request or user when there is ↵francis2008-03-15-0/+13
| | | | | | existing one with same title/name. Fix the bug, which was in function that makes url_title/url_name.
* Update test code.francis2007-11-07-6/+7
|
* More tests on user modelfrancis2007-10-30-7/+28
|
* Some more tests on user classfrancis2007-10-30-9/+38
|
* Add a couple of basic tests for InfoRequestfrancis2007-10-30-1/+3
|
* Adding rspec config files, initial specslouise2007-10-16-0/+15