Commit 162062ce authored by Balasankar "Balu" C's avatar Balasankar "Balu" C

Make rubocop happy

parent c0ef9958
...@@ -18,7 +18,7 @@ describe Backup::Files do ...@@ -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 ...@@ -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)
......
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