summaryrefslogtreecommitdiff
path: root/spec/migrations/remove_orphaned_label_links_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations/remove_orphaned_label_links_spec.rb')
-rw-r--r--spec/migrations/remove_orphaned_label_links_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/migrations/remove_orphaned_label_links_spec.rb b/spec/migrations/remove_orphaned_label_links_spec.rb
index 4c8135cd08c..e8c44c141c3 100644
--- a/spec/migrations/remove_orphaned_label_links_spec.rb
+++ b/spec/migrations/remove_orphaned_label_links_spec.rb
@@ -12,8 +12,8 @@ describe RemoveOrphanedLabelLinks, :migration do
before do
# This migration was created before we introduced ProjectCiCdSetting#default_git_depth
- allow_any_instance_of(ProjectCiCdSetting).to receive(:default_git_depth?).and_return(true)
allow_any_instance_of(ProjectCiCdSetting).to receive(:default_git_depth).and_return(nil)
+ allow_any_instance_of(ProjectCiCdSetting).to receive(:default_git_depth=).and_return(0)
end
context 'add foreign key on label_id' do