Make rubocop happy
This commit is contained in:
parent
c0ef9958ff
commit
162062ce4b
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue