Sha256: e79511b6f6afe0304e9b575513c3217954643dbe595f2d82986d305def41039d

Contents?: true

Size: 823 Bytes

Versions: 5

Compression:

Stored size: 823 Bytes

Contents

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