From 9aa3405a6c672f096279facc783a95d78dc20d73 Mon Sep 17 00:00:00 2001 From: "parag.jain" Date: Tue, 17 Dec 2024 21:07:45 +0530 Subject: [PATCH] rmt metadata cleanup after repo updates --- spec/lib/rmt/mirror/base_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/rmt/mirror/base_spec.rb b/spec/lib/rmt/mirror/base_spec.rb index 01453a459..3a38371a4 100644 --- a/spec/lib/rmt/mirror/base_spec.rb +++ b/spec/lib/rmt/mirror/base_spec.rb @@ -231,7 +231,7 @@ expect { base.move_files(glob: src, destination: dest) }.to raise_exception(/Error while moving files/) end - it 'removes existing files in the destination directory before moving' do + it 'remove existing files in the destination directory before moving' do allow(Dir).to receive(:exist?).with(dest).and_return(true) allow(Dir).to receive(:glob).with(File.join(dest, '*')).and_return(%w[/destination/path/file1.txt /destination/path/file2.txt]) allow(Dir).to receive(:glob).with(src).and_return(%w[/source/path/newfile1.txt /source/path/newfile2.txt])