From 162062ce4bc30ab0435d6aaddb2de4f9775ad556 Mon Sep 17 00:00:00 2001 From: "Balasankar \"Balu\" C" Date: Fri, 30 Mar 2018 13:23:53 +0530 Subject: [PATCH] Make rubocop happy --- spec/lib/backup/files_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/lib/backup/files_spec.rb b/spec/lib/backup/files_spec.rb index efc9ff0d7d3..858615dba2e 100644 --- a/spec/lib/backup/files_spec.rb +++ b/spec/lib/backup/files_spec.rb @@ -18,7 +18,7 @@ describe Backup::Files do end describe '#restore' do - subject { described_class.new('registry', '/var/gitlab-registry') } + subject { described_class.new('registry', '/var/gitlab-registry') } let(:timestamp) { Time.utc(2017, 3, 22) } around do |example| @@ -27,7 +27,6 @@ describe Backup::Files do describe 'folders without permissions' do before do - allow(File).to receive(:realpath).with("/var/gitlab-registry").and_return("/var/gitlab-registry") allow(File).to receive(:realpath).with("/var/gitlab-registry/..").and_return("/var") allow(File).to receive(:exist?).and_return(true)