Sha256: cda1ef76e0e51b7fb7b681ea99b9c6be87d02fbfb28af950e28d9f021feb0314
Contents?: true
Size: 1.2 KB
Versions: 16
Compression:
Stored size: 1.2 KB
Contents
require 'spec_helper' describe "CVE-2013-0175 security check" do let (:check) {Dawn::Kb::CVE_2013_0175.new} it "knows its name" do expect(check.name).to eq("CVE-2013-0175") end it "has a 7.5 cvss score" do check.cvss_score == 7.5 end it "fires when multi_xml vulnerable gem it has been found" do check.dependencies = [{:name=>"multi_xml", :version=>"0.5.2"}] expect(check.vuln?).to eq(true) end it "fires when Grape vulnerable gem it has been found" do check.dependencies = [{:name=>"grape", :version=>"0.2.5"}] expect(check.vuln?).to eq(true) end it "fires when multi_xml gem is not vulnerable but Grape is" do check.dependencies = [{:name=>"grape", :version=>"0.2.5"}, {:name=>"multi_xml", :version=>"0.5.3"}] expect(check.vuln?).to eq(true) end it "fires when multi_xml gem is vulnerable but Grape is not" do check.dependencies = [{:name=>"grape", :version=>"0.2.6"}, {:name=>"multi_xml", :version=>"0.5.2"}] expect(check.vuln?).to eq(true) end it "doesn't fire when no vulnerabilities were found" do check.dependencies = [{:name=>"grape", :version=>"0.2.6"}, {:name=>"multi_xml", :version=>"0.5.3"}] expect(check.vuln?).to eq(false) end end
Version data entries
16 entries across 16 versions & 1 rubygems