Sha256: 440bd2ff172627e432aac4d2fbc2cb5cfc0ba0b860adecac7d2b66b555fcfc01

Contents?: true

Size: 500 Bytes

Versions: 5

Compression:

Stored size: 500 Bytes

Contents

require 'spec_helper'
describe "The OSVDB_121701 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::OSVDB_121701.new
		# @check.debug = true
	end
	it "is reported when the vulnerable gem is detected" do
    @check.dependencies = [{:name=>"open-uri-cached", :version=>"0.0.4"}]
    @check.vuln?.should   == true
  end
  it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"open-uri-cached", :version=>"0.0.5"}]
    @check.vuln?.should   == false
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dawnscanner-1.6.1 spec/lib/kb/osvdb_121701_spec.rb
dawnscanner-1.6.0 spec/lib/kb/osvdb_121701_spec.rb
dawnscanner-1.5.2 spec/lib/kb/osvdb_121701_spec.rb
dawnscanner-1.5.1 spec/lib/kb/osvdb_121701_spec.rb
dawnscanner-1.5.0 spec/lib/kb/osvdb_121701_spec.rb