Remove a warning
We used to have `warning: removing `initialize' may cause serious problems` when running this test
This commit is contained in:
parent
0f0c9772f3
commit
2908a81a1b
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ describe ClamavService do
|
||||||
subject { ClamavService.safe_file? path_file }
|
subject { ClamavService.safe_file? path_file }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
allow_any_instance_of(ClamAV::Client).to receive(:initialize).and_return(ClamAV::Client)
|
client = instance_double("ClamAV::Client", :execute => [ClamAV::SuccessResponse])
|
||||||
allow_any_instance_of(ClamAV::Client).to receive(:execute).and_return([ClamAV::SuccessResponse])
|
allow(ClamAV::Client).to receive(:new).and_return(client)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'change permission of file path' do
|
it 'change permission of file path' do
|
||||||
|
|
Loading…
Add table
Reference in a new issue