Fix project auto dev ops failure
This commit is contained in:
parent
256699519a
commit
0e2aaeb83b
2 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# rubocop:disable Gitlab/ModuleWithInstanceVariables
|
# rubocop:disable Gitlab/ModuleWithInstanceVariables
|
||||||
|
|
||||||
# build_select only selects the required fields if the model has ignored_columns.
|
# build_select only selects the required fields if the model has ignored_columns.
|
||||||
|
|
|
@ -440,6 +440,8 @@ describe Projects::UpdateService do
|
||||||
context 'when auto devops is set to instance setting' do
|
context 'when auto devops is set to instance setting' do
|
||||||
before do
|
before do
|
||||||
project.create_auto_devops!(enabled: nil)
|
project.create_auto_devops!(enabled: nil)
|
||||||
|
project.reload
|
||||||
|
|
||||||
allow(project.auto_devops).to receive(:previous_changes).and_return('enabled' => true)
|
allow(project.auto_devops).to receive(:previous_changes).and_return('enabled' => true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue