Sha256: e838135e9d6a7b1d86ac7c24c9bbe515afd36744a2de8774057bccdc9480d589
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
require 'spec_helper' describe "The CVE-2015-8317 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2015_8317.new # @check.debug = true end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"nokogiri", :version=>"1.6.5"}] @check.vuln?.should == true end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"nokogiri", :version=>"1.6.0"}] @check.vuln?.should == true end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"nokogiri", :version=>"1.6.7"}] @check.vuln?.should == true end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"nokogiri", :version=>"1.6.7.1"}] @check.vuln?.should == false end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"nokogiri", :version=>"1.5.6"}] @check.vuln?.should == false end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"nokogiri", :version=>"1.4.6"}] @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_8317_spec.rb |
dawnscanner-1.6.0 | spec/lib/kb/cve_2015_8317_spec.rb |