Sha256: 1c8544b4dc6831bebe940f4e5cd6263cc01f38541c6530f909b8d78aad0706b6

Contents?: true

Size: 624 Bytes

Versions: 11

Compression:

Stored size: 624 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'}]
    @check.vuln?.should   == true
  end
  it "is reported when rails 4.0.4 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>'4.0.4'}]
    @check.vuln?.should   == true
  end
  it "is reported when rails 3.2.17 is detected" do
    @check.dependencies = [{:name=>"rails", :version=>'3.2.17'}]
    @check.vuln?.should   == true
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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