Sha256: e930bc0b827d6de13cceafb1efea66751f89635b570dcd8d407020df240b1a66
Contents?: true
Size: 1.24 KB
Versions: 7
Compression:
Stored size: 1.24 KB
Contents
require 'spec_helper' describe "The CVE-2015-3226 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2015_3226.new # @check.debug = true end it "is reported when vulnerable active_support gem is used (3.x.x)" do @check.dependencies = [{:name=>"activesupport", :version=>'3.2.11'}] @check.vuln?.should == true end it "is reported when vulnerable active_support gem is used (4.1.11)" do @check.dependencies = [{:name=>"activesupport", :version=>'4.1.11'}] @check.vuln?.should == true end it "is reported when vulnerable active_support gem is used (4.2.2)" do @check.dependencies = [{:name=>"activesupport", :version=>'4.2.2'}] @check.vuln?.should == true end it "is not reported when safe active_support gem is used (4.1.12)" do @check.dependencies = [{:name=>"activesupport", :version=>'4.1.12'}] @check.vuln?.should == false end it "is not reported when safe active_support gem is used (4.1.13)" do @check.dependencies = [{:name=>"activesupport", :version=>'4.1.13'}] @check.vuln?.should == false end it "is not reported when safe active_support gem is used (4.2.3)" do @check.dependencies = [{:name=>"activesupport", :version=>'4.2.3'}] @check.vuln?.should == false end end
Version data entries
7 entries across 7 versions & 1 rubygems