Sha256: 83b309e68850e197e0f00104c2de92912379324ef036964c8428d5185a747fd3
Contents?: true
Size: 1.01 KB
Versions: 8
Compression:
Stored size: 1.01 KB
Contents
require 'spec_helper' describe "The CVE-2013-2119 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2013_2119.new # @check.debug = true end it "fires when vulnerable passenger version is used" do @check.dependencies = [{:name=>"passenger", :version=>"4.0.4"}] expect(@check.vuln?).to eq(true) end it "fires when vulnerable passenger version is used" do @check.dependencies = [{:name=>"passenger", :version=>"4.0.0"}] expect(@check.vuln?).to eq(true) end it "fires when vulnerable passenger version is used" do @check.dependencies = [{:name=>"passenger", :version=>"3.0.20"}] expect(@check.vuln?).to eq(true) end it "doesn't fire when not vulnerable passenger version is used" do @check.dependencies = [{:name=>"passenger", :version=>"4.0.5"}] expect(@check.vuln?).to eq(false) end it "doesn't fire when not vulnerable passenger version is used" do @check.dependencies = [{:name=>"passenger", :version=>"3.0.21"}] expect(@check.vuln?).to eq(false) end end
Version data entries
8 entries across 8 versions & 1 rubygems