Sha256: a8b023030f65f73ac3f1ba16a96b6cb604486b47466bf34207d0d6e4665ecccd
Contents?: true
Size: 640 Bytes
Versions: 6
Compression:
Stored size: 640 Bytes
Contents
require 'spec_helper' describe "The CVE-2014-0130 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2014_0130.new # @check.debug = true end it "is reported when rails 4.1.0 is detected" do @check.dependencies = [{:name=>"rails", :version=>'4.1.0'}] expect(@check.vuln?).to eq(true) end it "is reported when rails 4.0.4 is detected" do @check.dependencies = [{:name=>"rails", :version=>'4.0.4'}] expect(@check.vuln?).to eq(true) end it "is reported when rails 3.2.22 is detected" do @check.dependencies = [{:name=>"rails", :version=>'3.2.22'}] expect(@check.vuln?).to eq(false) end end
Version data entries
6 entries across 6 versions & 1 rubygems