Sha256: cf008f87b5b3c61676f5d8ba4cce50790e02e208b141ffabd5eacd2fb39f7263
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
require 'spec_helper' RSpec.describe VirusScanService::KasperskyRunner::LinuxExecutor do subject { described_class.new } let(:desired_cmd) { 'sudo ' + '/opt/kaspersky/kes4lwks/bin/kes4lwks-control ' + '--scan-file /tmp/scan_file >> /tmp/bar.log' } describe '#scan' do it 'should exectute correct command' do expect(subject) .to receive(:system) .with(*desired_cmd.split(' ')) subject.scan(Pathname.new('/tmp').join('scan_file'), Pathname.new('/tmp').join('bar.log')) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
virus_scan_service-0.1.0 | spec/kaspersky_runner/linux_executor_spec.rb |
virus_scan_service-0.0.8 | spec/kaspersky_runner/linux_executor_spec.rb |