Sha256: ae454e1e896536b58cde64e2f7fb1f41f1535aa6fc51bd8c32f06a5685627ba7
Contents?: true
Size: 943 Bytes
Versions: 8
Compression:
Stored size: 943 Bytes
Contents
require 'spec_helper' describe "The CVE-2011-3009 vulnerability" do before(:all) do @check = 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"} expect(@check.vuln?).to eq(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"} expect(@check.vuln?).to eq(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"} expect(@check.vuln?).to eq(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"} expect(@check.vuln?).to eq(false) end end
Version data entries
8 entries across 8 versions & 1 rubygems