Sha256: c5dc5e542b9aa0c6262b39aaa73125eab63123d34c049d1bc028e6cc3f2ed079

Contents?: true

Size: 510 Bytes

Versions: 8

Compression:

Stored size: 510 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"}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"open-uri-cached", :version=>"0.0.5"}]
    expect(@check.vuln?).to   eq(false)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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