Remove a warning

We used to have `warning: removing `initialize'
may cause serious problems` when running this test
This commit is contained in:
gregoirenovel 2017-08-21 15:23:01 +02:00
parent 0f0c9772f3
commit 2908a81a1b

View file

@ -7,8 +7,8 @@ describe ClamavService do
subject { ClamavService.safe_file? path_file }
before do
allow_any_instance_of(ClamAV::Client).to receive(:initialize).and_return(ClamAV::Client)
allow_any_instance_of(ClamAV::Client).to receive(:execute).and_return([ClamAV::SuccessResponse])
client = instance_double("ClamAV::Client", :execute => [ClamAV::SuccessResponse])
allow(ClamAV::Client).to receive(:new).and_return(client)
end
it 'change permission of file path' do