diff options
author | Toon Claes <toon@gitlab.com> | 2018-10-03 15:09:16 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-03 15:09:16 +0000 |
commit | c5597547a1b907adb036b8341ebaaf1647ea3461 (patch) | |
tree | f9fe912a7d6d9f33f3522bfb8af27c31b9a85920 /spec | |
parent | f4db21eb22eeb9e07a9f5850d496570992f6d1f9 (diff) | |
download | gitlab-ce-c5597547a1b907adb036b8341ebaaf1647ea3461.tar.gz |
Backport of "Use Geo log to remove files when migrated to object storage"
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/shared_examples/uploaders/gitlab_uploader_shared_examples.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/shared_examples/uploaders/gitlab_uploader_shared_examples.rb b/spec/support/shared_examples/uploaders/gitlab_uploader_shared_examples.rb index 93c21a99e59..1190863d88e 100644 --- a/spec/support/shared_examples/uploaders/gitlab_uploader_shared_examples.rb +++ b/spec/support/shared_examples/uploaders/gitlab_uploader_shared_examples.rb @@ -33,6 +33,14 @@ shared_examples "builds correct paths" do |**patterns| it_behaves_like "matches the method pattern", :upload_path end + describe "#relative_path" do + it 'is relative' do + skip 'Path not set, skipping.' unless subject.path + + expect(Pathname.new(subject.relative_path)).to be_relative + end + end + describe ".absolute_path" do it_behaves_like "matches the method pattern", :absolute_path do let(:target) { subject.class } |