Sha256: e15c2fa3d7ecaeb7a4f4b9f198f2e465c98782966832b633779f088bb2209e2e

Contents?: true

Size: 834 Bytes

Versions: 11

Compression:

Stored size: 834 Bytes

Contents

require 'spec_helper'
describe "The CVE-2013-0162 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2013_0162.new
		# @check.debug = true
	end
  it "is reported when ruby_parser version 1.x is used" do
    @check.dependencies = [{:name=>"ruby_parser", :version=>'1.4.5'}]
    @check.vuln?.should == true
  end
  it "is reported when ruby_parser version 2.x is used" do
    @check.dependencies = [{:name=>"ruby_parser", :version=>'2.4.5'}]
    @check.vuln?.should == true
  end
  it "is reported when ruby_parser version 3.0.x is used" do
    @check.dependencies = [{:name=>"ruby_parser", :version=>'3.0.5'}]
    @check.vuln?.should == true
  end
  it "is not reported when ruby_parser version 3.1.1 is used" do
    @check.dependencies = [{:name=>"ruby_parser", :version=>'3.1.1'}]
    @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_0162_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2013_0162_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2013_0162_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2013_0162_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2013_0162_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2013_0162_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2013_0162_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2013_0162_spec.rb
dawnscanner-1.3.5 spec/lib/kb/cve_2013_0162_spec.rb
dawnscanner-1.3.1 spec/lib/kb/cve_2013_0162_spec.rb
dawnscanner-1.3.0 spec/lib/kb/cve_2013_0162_spec.rb