Sha256: 3be7c3246a41dda7b9b882236cf5b3701a94e201e26249ec301a5f85a6dfda2c
Contents?: true
Size: 933 Bytes
Versions: 16
Compression:
Stored size: 933 Bytes
Contents
require 'spec_helper' describe "The CVE-2011-3009 vulnerability" do before(:all) do @check = Codesake::Dawn::Kb::CVE_2011_3009.new # @check.debug = true end it "fires if ruby version is vulnerable (1.8.6-p111)" do @check.detected_ruby = {:engine=>'ruby', :version=>"1.8.6", :patchlevel=>"p111"} @check.vuln?.should be_true end it "fires if ruby version is vulnerable (1.8.5-p111)" do @check.detected_ruby = {:engine=>'ruby', :version=>"1.8.5", :patchlevel=>"p111"} @check.vuln?.should be_true end it "doesn't fire if ruby version is not vulnerable (1.8.6-p112)" do @check.detected_ruby = {:engine=>'ruby', :version=>"1.8.6", :patchlevel=>"p112"} @check.vuln?.should be_false end it "doesn't fire if ruby version is not vulnerable (1.9.2-p112)" do @check.detected_ruby = {:engine=>'ruby', :version=>"1.9.2", :patchlevel=>"p112"} @check.vuln?.should be_false end end
Version data entries
16 entries across 16 versions & 2 rubygems