summaryrefslogtreecommitdiffstats
path: root/test/unit/user_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r22746 from trunk to 5.1-stable (#40043).Marius Balteanu2024-02-271-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22755 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Raise the maximum length of the last name to 255 characters (#37679).Go MAEDA2023-08-271-0/+6
| | | | | | | Patch by Anthony Mallet. git-svn-id: https://svn.redmine.org/redmine/trunk@22284 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/MapMethodChain (#37247).Go MAEDA2023-08-231-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22280 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/InverseMethods: Use `invalid?` instead of ↵Go MAEDA2023-03-251-1/+1
| | | | | | inverting `valid?` (#37248). git-svn-id: https://svn.redmine.org/redmine/trunk@22153 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/InverseMethods: Use `present?` instead of ↵Go MAEDA2023-03-251-3/+3
| | | | | | inverting `blank?` (#37248). git-svn-id: https://svn.redmine.org/redmine/trunk@22152 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use `require_relative` instead of `require File.expand_path(..., __FILE__)` ↵Go MAEDA2023-01-011-1/+1
| | | | | | | | | (#38093). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix passing a wrong parameter to `with_settings` in ↵Go MAEDA2022-07-161-1/+1
| | | | | | | | | UserTest::test_random_password_include_required_characters (#37449). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21705 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add tasks to prune registered users after a certain number of days (#30998).Go MAEDA2022-03-221-0/+10
| | | | | | | Patch by Yuichi HARADA and Marius BALTEANU. git-svn-id: https://svn.redmine.org/redmine/trunk@21490 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecate and rename rss_* methods to atom_* methods (#15118).Marius Balteanu2022-03-191-7/+7
| | | | | | | Patch by Mischa The Evil and Marius BĂLTEANU git-svn-id: http://svn.redmine.org/redmine/trunk@21467 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Drop OpenID support (#35755).Go MAEDA2021-12-141-33/+0
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21312 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add missing fixtures to UserTest (#35975).Go MAEDA2021-11-111-1/+2
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@21277 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove references to deleted user from "user"-Format CustomFields when ↵Marius Balteanu2021-09-061-0/+35
| | | | | | | | destroying an user (#32977). Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21207 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove deprecated WikiContent::Version (#35031).Go MAEDA2021-05-151-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21002 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "ActiveRecord::StaleObjectError: Attempted to update a stale object: ↵Go MAEDA2021-04-011-3/+3
| | | | | | | | | Issue." (#29914, #32912). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20884 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* RuboCop: Fix Layout/SpaceInsideBlockBraces due to r20547 (#34071).Go MAEDA2020-12-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20548 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changes User.try_to_login to catch and log AuthSourceExceptions, and ↵Go MAEDA2020-12-021-6/+24
| | | | | | | | | introduces User.try_to_login! replicating the original behavior (#34071). Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@20547 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in ↵Toshi MARUYAMA2019-11-251-10/+14
| | | | | | test/unit/user_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19291 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/IndentFirstArgument in test/unit/user_test.rbToshi MARUYAMA2019-11-251-3/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19290 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceAfterComma in test/unit/user_test.rbToshi MARUYAMA2019-11-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19289 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/SpaceInsideParens in test/unit/user_test.rbToshi MARUYAMA2019-11-241-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19227 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add a fixture for UserTest#test_bookmarked_project_ids (#29482).Go MAEDA2019-10-281-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18877 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/AlignArguments in test/unit/user_test.rbToshi MARUYAMA2019-10-231-8/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18847 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Option to filter after my bookmarked projects (#32302, #29482, #31355).Go MAEDA2019-10-231-0/+7
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18842 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/LeadingCommentSpace in test/unit/user_test.rbToshi MARUYAMA2019-10-141-7/+14
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18654 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix test failure due to missing call to set_tmp_attachments_directory (#32122).Go MAEDA2019-10-041-0/+1
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18593 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Force passwords to contain specified character classes (#4221).Go MAEDA2019-08-291-0/+20
| | | | | | | Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@18411 e93f8b46-1217-0410-a6f0-8f06a7374b81
* 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