Simple spec fixes

parent 4772689d
......@@ -125,7 +125,6 @@ module Backup
end
end
# rubocop: disable Cop/AvoidReturnFromBlocks
def unpack
Dir.chdir(backup_path) do
if ENV['BACKUP'].present?
......@@ -169,7 +168,6 @@ module Backup
end
true
end
# rubocop: enable Cop/AvoidReturnFromBlocks
def tar_version
tar_version, _ = Gitlab::Popen.popen(%w(tar --version))
......
......@@ -241,7 +241,7 @@ describe 'gitlab:app namespace rake task' do
)
expect(exit_status).to eq(0)
expect(tar_contents).to match('db/')
expect(tar_contents).to match('db')
expect(tar_contents).to match('uploads.tar.gz')
expect(tar_contents).to match('repositories/')
expect(tar_contents).to match('builds.tar.gz')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment