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