Sha256: 04f5110055275f32ebbe2179b40a002d1a833a55db9035550d87e3a6533bc779

Contents?: true

Size: 500 Bytes

Versions: 8

Compression:

Stored size: 500 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"}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"redcarpet", :version=>"3.2.3"}]
    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_120415_spec.rb
dawnscanner-1.6.8 spec/lib/kb/osvdb_120415_spec.rb
dawnscanner-1.6.7 spec/lib/kb/osvdb_120415_spec.rb
dawnscanner-1.6.6 spec/lib/kb/osvdb_120415_spec.rb
dawnscanner-1.6.5 spec/lib/kb/osvdb_120415_spec.rb
dawnscanner-1.6.4 spec/lib/kb/osvdb_120415_spec.rb
dawnscanner-1.6.3 spec/lib/kb/osvdb_120415_spec.rb
dawnscanner-1.6.2 spec/lib/kb/osvdb_120415_spec.rb