Sha256: 5f55483e9502b26b90331527ed7f720a3b7a6dd7be2f69f965c11a3ae86846e5

Contents?: true

Size: 531 Bytes

Versions: 4

Compression:

Stored size: 531 Bytes

Contents

require 'spec_helper'
describe "The OSVDB_119878 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::OSVDB_119878.new
		# @check.debug = true
	end
  it "is reported when a vulnerable version it has been found (1.8.0)" do
    @check.dependencies = [{:name=>"rest-client", :version=>"1.8.0"}]
    @check.vuln?.should   == true
  end
  it "is not reported when a safe version it has been found (2.0.0.rc1)" do
    @check.dependencies = [{:name=>"rest-client", :version=>"2.0.0.rc1"}]
    @check.vuln?.should   == false
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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