Sha256: a8b023030f65f73ac3f1ba16a96b6cb604486b47466bf34207d0d6e4665ecccd

Contents?: true

Size: 640 Bytes

Versions: 6

Compression:

Stored size: 640 Bytes

Contents

require 'spec_helper'
describe "The CVE-2014-0130 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::CVE_2014_0130.new
		# @check.debug = true
	end
  it "is reported when rails 4.1.0 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>'4.1.0'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is reported when rails 4.0.4 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>'4.0.4'}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is reported when rails 3.2.22 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>'3.2.22'}]
    expect(@check.vuln?).to   eq(false)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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