diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-30 09:25:26 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-30 09:30:45 +0300 |
commit | 8604dbe9f6768a8bb44bf1e1b144f7fd216f3641 (patch) | |
tree | 51c7729c84c0a1f2a45c701cb2d338d3580bf650 /spec/factories/projects.rb | |
parent | 87740df2ba7153439c30544f299b235632717738 (diff) |
Fix up db/schema.rb changes leftover and comments out of date
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r-- | spec/factories/projects.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb index 3d2810bfdba..aed5eab8044 100644 --- a/spec/factories/projects.rb +++ b/spec/factories/projects.rb @@ -24,8 +24,8 @@ FactoryBot.define do merge_requests_access_level ProjectFeature::ENABLED repository_access_level ProjectFeature::ENABLED - # we can't assign the delegated `#settings` attributes directly, as the - # `#settings` relation needs to be created first + # we can't assign the delegated `#ci_cd_settings` attributes directly, as the + # `#ci_cd_settings` relation needs to be created first group_runners_enabled nil end @@ -52,7 +52,7 @@ FactoryBot.define do project.group&.refresh_members_authorized_projects - # assign the delegated `#settings` attributes after create + # assign the delegated `#ci_cd_settings` attributes after create project.reload.group_runners_enabled = evaluator.group_runners_enabled unless evaluator.group_runners_enabled.nil? end |