Sha256: 4c90ef68bfdd614509a3c626147e13d2808da652dde551ae7a84e190d823758d
Contents?: true
Size: 720 Bytes
Versions: 4
Compression:
Stored size: 720 Bytes
Contents
require 'shared_examples_for_scan_results' module Ddr module Antivirus module Adapters RSpec.describe ScanResult do subject { described_class.new("Raw result", "/tmp/foo") } it_should_behave_like "a scan result" describe "success" do it_should_behave_like "a successful scan result" end describe "error" do before { allow(subject).to receive(:error?) { true } } it_should_behave_like "an error scan result" end describe "virus found" do before { allow(subject).to receive(:virus_found) { "Bad boy 35" } } it_should_behave_like "a virus scan result" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems