Skip to content

Commit

Permalink
Mock downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnilson committed Apr 18, 2024
1 parent c6daee4 commit 851dfe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec/lib/rmt/cli/mirror_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
include_examples 'handles lockfile exception'
end


context 'suma product tree mirror with exception' do
let(:suma_error) { 'mirroring SUMA failed' }
let(:error_messages) { "Mirroring SUMA product tree failed: #{suma_error}." }
Expand Down
3 changes: 3 additions & 0 deletions spec/lib/rmt/mirror/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

describe '#mirror' do
it 'mirrors repositories and licenses' do
allow(downloader).to receive(:downloaded_files_count)
allow(downloader).to receive(:downloaded_files_size)

expect(base).to receive(:mirror_implementation)
expect(base).to receive(:cleanup_temp_dirs)
base.mirror
Expand Down

0 comments on commit 851dfe1

Please sign in to comment.