Sha256: 3541b7e025507f36919be5b0d4e4b0c5c179bfdf2ea7e33e0490338cf6b31d7e

Contents?: true

Size: 495 Bytes

Versions: 4

Compression:

Stored size: 495 Bytes

Contents

require 'spec_helper'
describe "The OSVDB_132234 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::OSVDB_132234.new
		# @check.debug = true
	end
	it "is reported when the vulnerable gem is detected" do
    @check.dependencies = [{:name=>"rack-attack", :version=>"4.3.0"}]
		expect(@check.vuln?).to   eq(true)
	end
	it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"rack-attack", :version=>"4.3.1"}]
		expect(@check.vuln?).to   eq(false)
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dawnscanner-1.6.9 spec/lib/kb/osvdb_132234_spec.rb
dawnscanner-1.6.8 spec/lib/kb/osvdb_132234_spec.rb
dawnscanner-1.6.7 spec/lib/kb/osvdb_132234_spec.rb
dawnscanner-1.6.6 spec/lib/kb/osvdb_132234_spec.rb