Sha256: a1c8b279c8e9bba225f67921884b59ceef2c368629776f4c8933e05a33f9a5c7

Contents?: true

Size: 789 Bytes

Versions: 2

Compression:

Stored size: 789 Bytes

Contents

require 'spec_helper'
describe "The CVE-2015-7579 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2015_7579.new
		# @check.debug = true
	end
	it "is reported when the vulnerable gem is detected" do
    @check.dependencies = [{:name=>"rails-html-sanitizer", :version=>"1.0.2"}]
		@check.vuln?.should   == true
	end
	it "is not reported when a fixed release is detected" do
		@check.dependencies = [{:name=>"", :version=>"1.0.3"}]
		@check.vuln?.should   == false
	end
	it "is not reported when a fixed release is detected" do
		@check.dependencies = [{:name=>"", :version=>"1.0.0"}]
		@check.vuln?.should   == false
	end
	it "is not reported when a fixed release is detected" do
		@check.dependencies = [{:name=>"", :version=>"1.0.1"}]
		@check.vuln?.should   == false
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/cve_2015_7579_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2015_7579_spec.rb