summaryrefslogtreecommitdiff
path: root/spec/tasks
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-15 22:21:51 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-15 22:21:51 +0200
commit81d98112d409e674dbdc47c0920a6d865c9eb49e (patch)
treed45273eb5dcd8dc5ee90a94c3477616c929f6045 /spec/tasks
parentd3b62e683730df2d93a6c39f7c0da6bd24640ee3 (diff)
downloadgitlab-ce-81d98112d409e674dbdc47c0920a6d865c9eb49e.tar.gz
Fix: tasks/gitlab/backup_rake_spec.rb
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/backup_rake_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb
index 32adcbec71f..36e425bb490 100644
--- a/spec/tasks/gitlab/backup_rake_spec.rb
+++ b/spec/tasks/gitlab/backup_rake_spec.rb
@@ -112,19 +112,19 @@ describe 'gitlab:app namespace rake task' do
it 'should set correct permissions on the tar contents' do
tar_contents, exit_status = Gitlab::Popen.popen(
- %W{tar -tvf #{@backup_tar} db uploads repositories}
+ %W{tar -tvf #{@backup_tar} db uploads repositories builds}
)
expect(exit_status).to eq(0)
expect(tar_contents).to match('db/')
expect(tar_contents).to match('uploads/')
expect(tar_contents).to match('repositories/')
expect(tar_contents).to match('builds/')
- expect(tar_contents).not_to match(/^.{4,9}[rwx].* (db|uploads|repositories)\/$/)
+ expect(tar_contents).not_to match(/^.{4,9}[rwx].* (db|uploads|repositories|builds)\/$/)
end
it 'should delete temp directories' do
temp_dirs = Dir.glob(
- File.join(Gitlab.config.backup.path, '{db,repositories,uploads}')
+ File.join(Gitlab.config.backup.path, '{db,repositories,uploads,builds}')
)
expect(temp_dirs).to be_empty