Skip to content

Commit

Permalink
rmt metadata cleanup after repo updates
Browse files Browse the repository at this point in the history
  • Loading branch information
paragjain0910 committed Dec 17, 2024
1 parent c410a91 commit 9aa3405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lib/rmt/mirror/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 9aa3405

Please sign in to comment.