summaryrefslogtreecommitdiff
path: root/spec/factories/projects.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-09-07 14:28:25 +0000
committerDouwe Maan <douwe@gitlab.com>2018-09-07 14:28:25 +0000
commit1f765ce9ea25b45cd702c25ccb762eacceb9a4ae (patch)
tree1dc0b5b6141b386d4e6fedce1ffd519e21a60e21 /spec/factories/projects.rb
parent766bb7fb8ed94b438aac47c0197c96cfff6c789f (diff)
parent1499d1764dbea4234002ee17fe46c0d6d6772067 (diff)
downloadgitlab-ce-1f765ce9ea25b45cd702c25ccb762eacceb9a4ae.tar.gz
Merge branch '48778-remove-old-storage-logic-from-import-export' into 'master'
Resolve "Remove old storage logic from Import/Export" Closes #51144, #50109, #48778, and #51079 See merge request gitlab-org/gitlab-ce!21409
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r--spec/factories/projects.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index dd6525b9622..80801eb1082 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -103,27 +103,11 @@ FactoryBot.define do
end
trait :with_export do
- before(:create) do |_project, _evaluator|
- allow(Feature).to receive(:enabled?).with(:import_export_object_storage) { false }
- allow(Feature).to receive(:enabled?).with('import_export_object_storage') { false }
- end
-
after(:create) do |project, _evaluator|
ProjectExportWorker.new.perform(project.creator.id, project.id)
end
end
- trait :with_object_export do
- before(:create) do |_project, _evaluator|
- allow(Feature).to receive(:enabled?).with(:import_export_object_storage) { true }
- allow(Feature).to receive(:enabled?).with('import_export_object_storage') { true }
- end
-
- after(:create) do |project, evaluator|
- ProjectExportWorker.new.perform(project.creator.id, project.id)
- end
- end
-
trait :broken_storage do
after(:create) do |project|
project.update_column(:repository_storage, 'broken')