Sha256: b8751019a12a6038567ee0fcf006c8d9fca39b4e95c58eb15cb0971c535f044f

Contents?: true

Size: 530 Bytes

Versions: 8

Compression:

Stored size: 530 Bytes

Contents

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