Sha256: be88d9bbd6a9855fd3ae972993cecf3f0a9ae2ac3073e9641d3db06091ed05e2
Contents?: true
Size: 1.99 KB
Versions: 8
Compression:
Stored size: 1.99 KB
Contents
require 'spec_helper' describe "The CVE-2016-0752 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2016_0752.new # @check.debug = true end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"actionview", :version=>"5.0.0.beta.1"}] expect(@check.vuln?).to eq(true) end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"actionview", :version=>"4.2.5"}] expect(@check.vuln?).to eq(true) end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"actionview", :version=>"4.1.14"}] expect(@check.vuln?).to eq(true) end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"actionview", :version=>"3.2.22"}] expect(@check.vuln?).to eq(true) end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"actionview", :version=>"5.0.0"}] expect(@check.vuln?).to eq(false) end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"actionview", :version=>"4.2.5.1"}] expect(@check.vuln?).to eq(false) end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"actionview", :version=>"4.2.6"}] expect(@check.vuln?).to eq(false) end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"actionview", :version=>"4.1.14.2"}] expect(@check.vuln?).to eq(false) end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"actionview", :version=>"4.1.15"}] expect(@check.vuln?).to eq(false) end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"actionview", :version=>"3.2.22.1"}] expect(@check.vuln?).to eq(false) end it "is not reported when a fixed release is detected" do @check.dependencies = [{:name=>"actionview", :version=>"3.2.23"}] expect(@check.vuln?).to eq(false) end end
Version data entries
8 entries across 8 versions & 1 rubygems