Sha256: b6cb6fce13cfb0c3b5375bb4459669ef639546572c64418638a1d9e7672b035b
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 KB
Contents
require 'spec_helper' describe "The CVE-2016-0751 vulnerability" do before(:all) do @check = Dawn::Kb::CVE_2016_0751.new # @check.debug = true end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"actionpack", :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=>"actionpack", :version=>"4.2.5"}] expect(@check.vuln?).to eq(true) end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"actionpack", :version=>"4.1.14"}] expect(@check.vuln?).to eq(true) end it "is reported when the vulnerable gem is detected" do @check.dependencies = [{:name=>"actionpack", :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=>"", :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=>"", :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=>"", :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=>"", :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=>"", :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=>"", :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=>"", :version=>"3.2.23"}] expect(@check.vuln?).to eq(false) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dawnscanner-1.6.2 | spec/lib/kb/cve_2016_0751_spec.rb |