Sha256: 8189da1facc27da6fe1173e5344730750d7949e9117061642590f888e80546e6

Contents?: true

Size: 519 Bytes

Versions: 8

Compression:

Stored size: 519 Bytes

Contents

require 'spec_helper'
describe "The OSVDB_119927 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::OSVDB_119927.new
		# @check.debug = true
	end
  it "is reported when a vulnerable version it has been found (0.7.3)" do
    @check.dependencies = [{:name=>"http", :version=>"0.7.3"}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is not reported when a safe version it has been found (0.8.0)" do
    @check.dependencies = [{:name=>"http", :version=>"0.8.0"}]
    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_119927_spec.rb
dawnscanner-1.6.8 spec/lib/kb/osvdb_119927_spec.rb
dawnscanner-1.6.7 spec/lib/kb/osvdb_119927_spec.rb
dawnscanner-1.6.6 spec/lib/kb/osvdb_119927_spec.rb
dawnscanner-1.6.5 spec/lib/kb/osvdb_119927_spec.rb
dawnscanner-1.6.4 spec/lib/kb/osvdb_119927_spec.rb
dawnscanner-1.6.3 spec/lib/kb/osvdb_119927_spec.rb
dawnscanner-1.6.2 spec/lib/kb/osvdb_119927_spec.rb