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 }
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue