summaryrefslogtreecommitdiffstats
path: root/test/unit/user_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Groups are incorrect when grouping by date without user timezone set.Jean-Philippe Lang2019-06-201-1/+17
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18264 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable frozen_string_literal for some files under test directory (#26561).Go MAEDA2019-03-161-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17978 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Current user should be nil to prevent ActiveJob::DeserializationError errors ↵Jean-Philippe Lang2018-11-291-0/+1
| | | | | | in tests. git-svn-id: http://svn.redmine.org/redmine/trunk@17665 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgrade to Rails 5.2.0 (#23630).Jean-Philippe Lang2018-06-231-0/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17410 e93f8b46-1217-0410-a6f0-8f06a7374b81
* LdapError is deprecated (#24970).Jean-Philippe Lang2017-07-081-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16773 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed User#project_ids_by_role when first called within chained scopes (#26376).Jean-Philippe Lang2017-07-081-0/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16767 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a User.admin scope (#25416).Jean-Philippe Lang2017-04-031-1/+19
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16449 e93f8b46-1217-0410-a6f0-8f06a7374b81
* spelling fixes (#25495)Toshi MARUYAMA2017-04-021-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16445 e93f8b46-1217-0410-a6f0-8f06a7374b81
* revert r16322 (#24970)Toshi MARUYAMA2017-02-021-1/+1
| | | | | | Some tests fail. git-svn-id: http://svn.redmine.org/redmine/trunk@16323 e93f8b46-1217-0410-a6f0-8f06a7374b81
* replace depricated Net::LDAP::LdapError by Net::LDAP::Error (#24970)Toshi MARUYAMA2017-02-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16322 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove empty lines including white space from test/unit/user_test.rbToshi MARUYAMA2017-01-081-2/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16162 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use assert_nil instead of assert_equal.Jean-Philippe Lang2016-12-111-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enforce issue assignee validation (#23921).Jean-Philippe Lang2016-12-101-0/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16055 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't pass conditions to #delete_all.Jean-Philippe Lang2016-07-161-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15675 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Validate status of users and groups.Jean-Philippe Lang2016-04-111-0/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15320 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Missing fixtures.Jean-Philippe Lang2016-01-091-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15018 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Typo "coma" (#20551).Jean-Philippe Lang2015-10-201-2/+2
| | | | | | Patch by budo kaiman. git-svn-id: http://svn.redmine.org/redmine/trunk@14712 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed workflow rules when user has duplicated role by inheritance (#19569).Jean-Philippe Lang2015-04-141-0/+12
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14179 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add support for multiple email addresses per user (#4244).Jean-Philippe Lang2015-01-171-7/+38
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added missing tests for notify_about?Jean-Philippe Lang2014-11-241-24/+27
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13650 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed some test contexts.Jean-Philippe Lang2014-11-241-71/+34
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13649 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed tests broken by r13646.Jean-Philippe Lang2014-11-231-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13648 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed some test contexts.Jean-Philippe Lang2014-11-231-72/+55
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13647 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed some test contexts.Jean-Philippe Lang2014-11-231-80/+45
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13646 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Selected projects in email notifications on "my account" are lost when the ↵Jean-Philippe Lang2014-11-221-0/+5
| | | | | | | | page is redisplayed after a validation error (#18060). Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@13638 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-8/+43
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds buit-in groups to give specific permissions to anonymous and non ↵Jean-Philippe Lang2014-09-281-5/+33
| | | | | | members users per project (#17976). git-svn-id: http://svn.redmine.org/redmine/trunk@13417 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Invalidate security tokens on password or email changes (#17717).Jean-Baptiste Barth2014-09-141-0/+36
| | | | | | | Contributed by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@13396 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make 2nd parameter optional in User#allowed_to_globally? for consistency ↵Jean-Baptiste Barth2014-09-061-0/+13
| | | | | | (#6498). git-svn-id: http://svn.redmine.org/redmine/trunk@13364 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove unneeded Relation#all from UserTestToshi MARUYAMA2014-01-271-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12714 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds firstname initials+lastname user format.Jean-Philippe Lang2014-01-241-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12690 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated find_all_by_* at UserTestToshi MARUYAMA2014-01-091-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12571 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated Relation#first with finder options at UserTestToshi MARUYAMA2014-01-091-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12564 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix indents of OpenID tests in UserTestToshi MARUYAMA2013-12-091-27/+24
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12395 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code format clean up UserTestToshi MARUYAMA2013-12-091-20/+37
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12394 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't create duplicate wikis in test (#15420).Jean-Philippe Lang2013-11-231-1/+1
| | | | | | Patch by George Gensure. git-svn-id: http://svn.redmine.org/redmine/trunk@12317 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from test/unit/user_test.rbToshi MARUYAMA2013-10-171-5/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12224 e93f8b46-1217-0410-a6f0-8f06a7374b81
* not use assert_not_nil in Errors#[]Toshi MARUYAMA2013-07-301-1/+1
| | | | | | | | r7593 etc. replaced Rails2 Errors#on. Rails3 Errors#[] always return array. So, Rails3 Errors#[] is always not nil. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12070 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Role based custom queries (#1019).Jean-Philippe Lang2013-07-111-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11994 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Cleanup of finders with :conditions option.Jean-Philippe Lang2013-06-121-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a test for User.try_to_login with active_only set to false.Jean-Philippe Lang2013-06-091-26/+31
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed some shoulda context.Jean-Philippe Lang2013-05-181-82/+67
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11865 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Performance: avoid querying all memberships in User#roles_for_project (#13301).Jean-Philippe Lang2013-03-011-0/+26
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11508 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use User#generate_password in MailHandler.Jean-Philippe Lang2013-02-231-0/+14
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11457 e93f8b46-1217-0410-a6f0-8f06a7374b81