Sha256: c58fd2e46a13610b241c3c660b59c7a5de8a3f11d1ddcbe3f17cc05040410e19
Contents?: true
Size: 1.9 KB
Versions: 4
Compression:
Stored size: 1.9 KB
Contents
require 'spec_helper' describe "The CVE-2014-7829 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2014_7829.new # @check.debug = true end it "is reported when vulnerable rails gem is used (3.2.20)" do @check.dependencies = [{:name=>"rails", :version=>'3.2.20'}] expect(@check.vuln?).to eq(true) end it "is reported when vulnerable rails gem is used (3.1.20)" do @check.dependencies = [{:name=>"rails", :version=>'3.1.20'}] expect(@check.vuln?).to eq(true) end it "is reported when vulnerable rails gem is used (3.0.20)" do @check.dependencies = [{:name=>"rails", :version=>'3.0.20'}] expect(@check.vuln?).to eq(true) end it "is reported when vulnerable rails gem is used (4.0.11)" do @check.dependencies = [{:name=>"rails", :version=>'4.0.11'}] expect(@check.vuln?).to eq(true) end it "is reported when vulnerable rails gem is used (4.1.7)" do @check.dependencies = [{:name=>"rails", :version=>'4.1.7'}] expect(@check.vuln?).to eq(true) end it "is reported when vulnerable rails gem is used (4.2.0.beta3)" do @check.dependencies = [{:name=>"rails", :version=>'4.2.0.beta3'}] expect(@check.vuln?).to eq(true) end it "is not reported when safe rails gem is used (3.2.21)" do @check.dependencies = [{:name=>"rails", :version=>'3.2.21'}] expect(@check.vuln?).to eq(false) end it "is not reported when safe rails gem is used (4.0.12)" do @check.dependencies = [{:name=>"rails", :version=>'4.0.12'}] expect(@check.vuln?).to eq(false) end it "is not reported when safe rails gem is used (4.1.8)" do @check.dependencies = [{:name=>"rails", :version=>'4.1.8'}] expect(@check.vuln?).to eq(false) end it "is not reported when safe rails gem is used (4.2.0.beta4)" do @check.dependencies = [{:name=>"rails", :version=>'4.2.0.beta4'}] expect(@check.vuln?).to eq(false) end it "is reported when..." end
Version data entries
4 entries across 4 versions & 1 rubygems