diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /spec/factories/projects.rb | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r-- | spec/factories/projects.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb index e4b53186ea8..328b7f9a229 100644 --- a/spec/factories/projects.rb +++ b/spec/factories/projects.rb @@ -61,7 +61,7 @@ FactoryBot.define do hash.store("pages_access_level", evaluator.pages_access_level) end - project.project_feature.update(hash) + project.project_feature.update!(hash) # Normally the class Projects::CreateService is used for creating # projects, and this class takes care of making sure the owner and current @@ -82,7 +82,7 @@ FactoryBot.define do import_state.jid = evaluator.import_jid import_state.correlation_id_value = evaluator.import_correlation_id import_state.last_error = evaluator.import_last_error - import_state.save + import_state.save! end end @@ -389,4 +389,8 @@ FactoryBot.define do create(:design, project: project, issue: issue) end end + + trait :in_subgroup do + namespace factory: [:group, :nested] + end end |