Sha256: f75fe5a52792338f08c79bf8b0db09fa55d7d4c1bca9bcdfaef3b4802a77f343

Contents?: true

Size: 665 Bytes

Versions: 8

Compression:

Stored size: 665 Bytes

Contents

require 'spec_helper'
describe "The OSVDB_118954 vulnerability" do
	before(:all) do
		@check = Dawn::Kb::OSVDB_118954.new
		# @check.debug = true
	end
  it "is reported when the vulnerable gem is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"4.2.0"}]
    expect(@check.vuln?).to   eq(true)
  end
  it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"4.2.1.rc3"}]
    expect(@check.vuln?).to   eq(false)
  end
  it "is not reported when a fixed release is detected" do
    @check.dependencies = [{:name=>"rails", :version=>"4.0.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_118954_spec.rb
dawnscanner-1.6.8 spec/lib/kb/osvdb_118954_spec.rb
dawnscanner-1.6.7 spec/lib/kb/osvdb_118954_spec.rb
dawnscanner-1.6.6 spec/lib/kb/osvdb_118954_spec.rb
dawnscanner-1.6.5 spec/lib/kb/osvdb_118954_spec.rb
dawnscanner-1.6.4 spec/lib/kb/osvdb_118954_spec.rb
dawnscanner-1.6.3 spec/lib/kb/osvdb_118954_spec.rb
dawnscanner-1.6.2 spec/lib/kb/osvdb_118954_spec.rb