Sha256: 2e8af32aba05bb320a1461503c891fecd43e0deed07316f20baa5913f3d5bcab

Contents?: true

Size: 496 Bytes

Versions: 8

Compression:

Stored size: 496 Bytes

Contents

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

  it "is reported when the vulnerable gem is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"3.2.15"}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"3.2.22"}]
    expect(@check.vuln?).to   eq(false)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dawnscanner-1.6.9 spec/lib/kb/cve_2013_4491_spec.rb
dawnscanner-1.6.8 spec/lib/kb/cve_2013_4491_spec.rb
dawnscanner-1.6.7 spec/lib/kb/cve_2013_4491_spec.rb
dawnscanner-1.6.6 spec/lib/kb/cve_2013_4491_spec.rb
dawnscanner-1.6.5 spec/lib/kb/cve_2013_4491_spec.rb
dawnscanner-1.6.4 spec/lib/kb/cve_2013_4491_spec.rb
dawnscanner-1.6.3 spec/lib/kb/cve_2013_4491_spec.rb
dawnscanner-1.6.2 spec/lib/kb/cve_2013_4491_spec.rb