Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicaël Bergeron <mbergeron@gitlab.com>2018-02-22 00:09:53 +0300
committerMicaël Bergeron <mbergeron@gitlab.com>2018-03-01 18:36:24 +0300
commita8df653faeec9147725a391d6de49d1b9fe4528e (patch)
treedd7537bd9be2adf3280b985600c0d88784ea6967 /spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
parent0f1d348d683fdef6c36c3b244c85e59f582ff886 (diff)
another round of fixes
Diffstat (limited to 'spec/support/shared_examples/uploaders/object_storage_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/uploaders/object_storage_shared_examples.rb49
1 files changed, 0 insertions, 49 deletions
diff --git a/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb b/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
index 6fceb5d18af..cd9974cd6e2 100644
--- a/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
+++ b/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
@@ -124,52 +124,3 @@ shared_examples "migrates" do |to_store:, from_store: nil|
end
end
end
-
-shared_examples "matches the method pattern" do |method|
- let(:target) { subject }
- let(:args) { nil }
- let(:pattern) { patterns[method] }
-
- it do
- return skip "No pattern provided, skipping." unless pattern
-
- expect(target.method(method).call(*args)).to match(pattern)
- end
-end
-
-shared_examples "builds correct paths" do |**patterns|
- let(:patterns) { patterns }
-
- before do
- allow(subject).to receive(:filename).and_return('<filename>')
- end
-
- describe "#store_dir" do
- it_behaves_like "matches the method pattern", :store_dir
- end
-
- describe "#cache_dir" do
- it_behaves_like "matches the method pattern", :cache_dir
- end
-
- describe "#work_dir" do
- it_behaves_like "matches the method pattern", :work_dir
- end
-
- describe "#upload_path" do
- it_behaves_like "matches the method pattern", :upload_path
- end
-
- describe ".absolute_path" do
- it_behaves_like "matches the method pattern", :absolute_path do
- let(:target) { subject.class }
- let(:args) { [upload] }
- end
- end
-
- describe ".base_dir" do
- it_behaves_like "matches the method pattern", :base_dir do
- let(:target) { subject.class }
- end
- end
-end