Sha256: 6a920a5afbf09d2791925f6e851ddf6ffaa6caa1f8b91ed8d34bc12a21c830df

Contents?: true

Size: 508 Bytes

Versions: 11

Compression:

Stored size: 508 Bytes

Contents

require 'spec_helper'
describe "The CVE-2013-4203 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2013_4203.new
		# @check.debug = true
	end
  it "is reported when a vulnerable rgpg version is detected (0.2.2)" do
    @check.dependencies = [{:name=>"rgpg", :version=>"0.2.2"}]
    @check.vuln?.should   == true
  end
  it "is not reported when a safe rgpg version is detected (0.2.3)" do
    @check.dependencies = [{:name=>"rgpg", :version=>"0.2.3"}]
    @check.vuln?.should   == false
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.3.5 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.3.1 spec/lib/kb/cve_2013_4203_spec.rb
dawnscanner-1.3.0 spec/lib/kb/cve_2013_4203_spec.rb