Sha256: f0a2f3c5f8346afcba0d7d129c0b5bf07b3c5e0f81c4fd383ea21eff9540b980
Contents?: true
Size: 842 Bytes
Versions: 8
Compression:
Stored size: 842 Bytes
Contents
require 'spec_helper' describe "The CVE-2012-2671 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2012_2671.new # @check.debug = true end it "is reported when ruby-cache version 0.5 is used" do @check.dependencies = [{:name=>"rack-cache", :version=>'0.5'}] expect(@check.vuln?).to eq(true) end it "is reported when ruby-cache version 0.8 is used" do @check.dependencies = [{:name=>"rack-cache", :version=>'0.8'}] expect(@check.vuln?).to eq(true) end it "is reported when ruby-cache version 1.1.1 is used" do @check.dependencies = [{:name=>"rack-cache", :version=>'1.1.1'}] expect(@check.vuln?).to eq(true) end it "is not reported when ruby-cache version 1.1.2 is used" do @check.dependencies = [{:name=>"rack-cache", :version=>'1.1.2'}] expect(@check.vuln?).to eq(false) end end
Version data entries
8 entries across 8 versions & 1 rubygems