Sha256: f962e7e577bdcf778541c95343a6839d495e1fda85617214bd847022f999c9a1

Contents?: true

Size: 639 Bytes

Versions: 2

Compression:

Stored size: 639 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.17 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>'3.2.17'}]
    expect(@check.vuln?).to   eq(true)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dawnscanner-1.6.3 spec/lib/kb/cve_2014_0130_spec.rb
dawnscanner-1.6.2 spec/lib/kb/cve_2014_0130_spec.rb