summaryrefslogtreecommitdiff
path: root/spec/factories/users.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42GitLab Bot2022-11-171-0/+4
|
* Add latest changes from gitlab-org/gitlab@15-3-stable-eev15.3.0-rc42GitLab Bot2022-08-181-1/+1
|
* Add latest changes from gitlab-org/security/gitlab@14-9-stable-eeGitLab Bot2022-03-311-0/+4
|
* Add latest changes from gitlab-org/security/gitlab@14-9-stable-eeGitLab Bot2022-03-301-1/+1
|
* Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42GitLab Bot2022-03-181-1/+7
|
* Add latest changes from gitlab-org/gitlab@14-8-stable-eeGitLab Bot2022-02-231-0/+4
|
* Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42GitLab Bot2022-01-201-1/+1
|
* Add latest changes from gitlab-org/security/gitlab@14-4-stable-eeGitLab Bot2021-10-271-0/+4
|
* Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42GitLab Bot2021-10-201-0/+2
|
* Add latest changes from gitlab-org/gitlab@14-3-stable-eev14.3.0-rc42GitLab Bot2021-09-201-4/+0
|
* Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42GitLab Bot2021-05-191-0/+10
|
* Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42GitLab Bot2020-12-171-0/+8
|
* Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot2020-11-191-1/+1
|
* Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42GitLab Bot2020-10-211-0/+8
|
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-191-0/+18
|
* Add latest changes from gitlab-org/security/gitlab@13-0-stable-eeGitLab Bot2020-05-261-0/+4
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-1/+5
|
* Add latest changes from gitlab-org/gitlab@12-10-stable-eeGitLab Bot2020-04-201-0/+9
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-181-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-061-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-181-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-021-13/+13
|
* Limit access request email to 10 most recently active owners/maintainersManoj MJ2019-08-301-0/+8
| | | | | | This change limits the number of emails for new access requests notifications to 10 most recently active owners/maintainers
* Add frozen_string_literal to spec/factoriesfrozen_string_spec_factoriesThong Kuah2019-07-261-0/+2
| | | | | Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* preventing blocked users and their PipelineSchdules from creating new Pipelinesdrew cimino2019-06-041-0/+10
| | | | updated several specs and factories to accomodate new permissions
* Refactor spec/factories/users.rb to allow EE to extend itRémy Coutable2019-02-181-3/+8
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use the correct email address when committing via a file serviceNick Thomas2018-09-171-0/+8
|
* Export assigned issues in iCalendar feedImre Farkas2018-05-311-4/+0
|
* porting changes from upstream3867-port-to-ceMicaël Bergeron2018-02-011-1/+1
|
* Replace factory_girl_rails with factory_bot_railsrc/use-factory_bot_railsRémy Coutable2017-12-141-1/+1
| | | | | | | | | | | I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '36679-non-authorized-user-may-see-wikis-or-pipeline-page' into ↵Douwe Maan2017-12-081-0/+4
| | | | | | | | | | | 'security-10-2' Fixes project visibility guidelines See merge request gitlab/gitlabhq!2226 (cherry picked from commit 877c42c0aaf3298d6001614c9706bc366ae4014c) e4fd1c26 Ensure project wiki visibility guidelines are met
* Merge branch 'rc/improve-projects-factory' into 'master'Robert Speicher2017-08-101-1/+1
|\ | | | | | | | | Improve the Project factory to make `creator` defaults to `namespace.owner` See merge request !13412
| * Improve the Project factory to make `creator` defaults to namespace.ownerRémy Coutable2017-08-101-1/+1
| | | | | | | | | | | | | | | | Also improves the `create_templates` transient attribute and use `project.project_feature.update_columns` instead of `project.project_feature.update_attributes!` since it's faster. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Manually assign `notification_email` in the User factory when stubbedrs-fix-stubbed-user-factoryRobert Speicher2017-08-081-0/+4
|/ | | | | | | | | Because we assign this value in the model via a callback conditionally on `email_changed?`, this never gets set when using `build_stubbed`, resulting in a "can't be blank" validation error on this field. In this case, we can just assign it manually to the same value as `email`, which is generated via a sequence.
* create User#rss_token in user factory explicitelyAlexis Reigel2017-05-241-0/+4
| | | | | otherwise we'll have to use `user.reload` in the specs to get the current rss_token value.
* Backport avatar-related spec changes from gitlab-org/gitlab-ee@4b464eaaeebackport-ee-4b464eaaeeRémy Coutable2017-05-041-0/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't use FFaker in factories, use sequences insteadRémy Coutable2017-04-031-5/+3
| | | | | | | FFaker can generate data that randomly break our test suite. This simplifies our factories and use sequences which are more predictive. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't allow deleting a ghost user.Timothy Andrew2017-02-241-0/+1
| | | | | | | | | | | | | | | - Add a `destroy_user` ability. This didn't exist before, and was implicit in other abilities (only admins could access the admin area, so only they could destroy all users; a user can only access their own account page, and so can destroy only themselves). - Grant this ability to admins, and when the current user is trying to destroy themselves. Disallow destroying ghost users in all cases. - Modify the `Users::DestroyService` to check this ability. Also check it in views to decide whether or not to show the "Delete User" button. - Add a short summary of the Ghost User to the bio.
* Use a `ghost` boolean to track ghost users.Timothy Andrew2017-02-241-0/+4
| | | | | | Rather than using a separate `ghost` state. This lets us have the benefits of both ghost and blocked users (ghost: true, state: blocked) without having to rewrite a number of queries to include cases for `state: ghost`.
* Don't perform Devise trackable updates on blocked User recordsrs-warden-blocked-usersRobert Speicher2017-02-101-0/+8
|
* Add a `U2fRegistrations` table/model.Timothy Andrew2016-06-061-1/+13
| | | | | | | | | | | | | | - To hold registrations from U2F devices, and to authenticate them. - Previously, `User#two_factor_enabled` was aliased to the `otp_required_for_login` column on `users`. - This commit changes things a bit: - `User#two_factor_enabled` is not a method anymore - `User#two_factor_enabled?` checks both the `otp_required_for_login` column, as well as `U2fRegistration`s - Change all instances of `User#two_factor_enabled` to `User#two_factor_enabled?` - Add the `u2f` gem, and implement registration/authentication at the model level.
* Add spec for deletion of authorized OAuth2 applicationStan Hu2016-04-141-1/+1
| | | | | | Closes #14370 Move gon function into its own helper
* Revert "Merge branch 'avatar-cropping' into 'master' "revert-avatar-croppingRémy Coutable2016-03-151-7/+0
| | | | | This reverts commit 01160fc06182de89c400af174861f6545ad6ceb8, reversing changes made to 4bff9daf8b6d85e9c78565e21cfaa3f6d36f0282.
* Move all factory definitions to their own fileRobert Speicher2016-03-041-0/+50