require 'spec_helper' describe "The CVE-2013-7086 vulnerability" do before(:all) do @check = Codesake::Dawn::Kb::CVE_2013_7086.new # @check.debug = true end it "is detected for gem 1.0.5.3" do @check.dependencies = [{:name=>"webbynode", :version=>'1.0.5.3'}] @check.vuln?.should be_true end it "is detected for gem 1.0.4.3" do @check.dependencies = [{:name=>"webbynode", :version=>'1.0.4.3'}] @check.vuln?.should be_true end it "is not detected for gem 1.0.5.4" do @check.dependencies = [{:name=>"webbynode", :version=>'1.0.5.4'}] @check.vuln?.should be_false end end