Sha256: 2c52201718c9ad9e923d0e09dff55573d50665adb2d5b9d8d528e9020f510466

Contents?: true

Size: 490 Bytes

Versions: 5

Compression:

Stored size: 490 Bytes

Contents

require 'spec_helper'
describe "The OSVDB_120415 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::OSVDB_120415.new
		# @check.debug = true
	end
  it "is reported when the vulnerable gem is detected" do
    @check.dependencies = [{:name=>"redcarpet", :version=>"3.2.2"}]
    @check.vuln?.should   == true
  end
  it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"redcarpet", :version=>"3.2.3"}]
    @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_120415_spec.rb
dawnscanner-1.6.0 spec/lib/kb/osvdb_120415_spec.rb
dawnscanner-1.5.2 spec/lib/kb/osvdb_120415_spec.rb
dawnscanner-1.5.1 spec/lib/kb/osvdb_120415_spec.rb
dawnscanner-1.5.0 spec/lib/kb/osvdb_120415_spec.rb