Sha256: 63b848e7be06e9b06208ae514092acf6488bfcdb3f846c6ab2ccc677ae13ae0d

Contents?: true

Size: 561 Bytes

Versions: 11

Compression:

Stored size: 561 Bytes

Contents

require 'spec_helper'
describe "The CVE-2014-1234 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2014_1234.new
		# @check.debug = true
	end

  it "is reported when a paratrooper-newrelic gem version 1.0.1 is detected" do
    @check.dependencies = [{:name=>"paratrooper-newrelic", :version=>"1.0.1"}]
    @check.vuln?.should   == true
  end
  it "is not reported when a paratrooper-newrelic gem version 1.0.2 is detected" do
    @check.dependencies = [{:name=>"paratrooper-newrelic", :version=>"1.0.2"}]
    @check.vuln?.should   == false
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.6.0 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.5.2 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.5.1 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.5.0 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.4.2 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.4.1 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.4.0 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.3.5 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.3.1 spec/lib/kb/cve_2014_1234_spec.rb
dawnscanner-1.3.0 spec/lib/kb/cve_2014_1234_spec.rb