Skip to content

Commit

Permalink
Move downloader mock to before block
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnilson committed Apr 18, 2024
1 parent 851dfe1 commit fa51275
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/lib/rmt/mirror/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@
described_class.send(:public, *described_class.protected_instance_methods)

allow(base).to receive(:downloader).and_return(downloader)
allow(downloader).to receive(:downloaded_files_count)
allow(downloader).to receive(:downloaded_files_size)
end

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 fa51275

Please sign in to comment.