require 'acceptance_spec_helper' RSpec.describe Pluginscan::Scanner, type: [:file, :process] do before do # these are slow, so don't run them if we don't have to stub_sloccount stub_cloc stub_vuln_check end describe '.scan' do it "raises an error when the directory could not be found" do # This should never happen when called from the command line - # bin/pluginscan should check that the directory exists first expect{ Pluginscan::Scanner.new.scan("a") }.to raise_error Errno::ENOENT end end end