Make rubocop happy

This commit is contained in:
Balasankar "Balu" C 2018-03-30 13:23:53 +05:30
parent c0ef9958ff
commit 162062ce4b

View file

@ -18,7 +18,7 @@ describe Backup::Files do
end end
describe '#restore' do 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) } let(:timestamp) { Time.utc(2017, 3, 22) }
around do |example| around do |example|
@ -27,7 +27,6 @@ describe Backup::Files do
describe 'folders without permissions' do describe 'folders without permissions' do
before 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/gitlab-registry")
allow(File).to receive(:realpath).with("/var/gitlab-registry/..").and_return("/var") allow(File).to receive(:realpath).with("/var/gitlab-registry/..").and_return("/var")
allow(File).to receive(:exist?).and_return(true) allow(File).to receive(:exist?).and_return(true)