From cca82f4b3647fb4989a5f31a525cb4c3b3473ee5 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Wed, 12 Nov 2014 13:41:30 -0600 Subject: [PATCH] Failing spec for Msf::Framework.new threads MSP-11605 `Msf::Framework.new` creates 8 threads (change from 1 thread to 9 threads), but it shouldn't create any threads. --- spec/lib/msf/core/framework_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/lib/msf/core/framework_spec.rb b/spec/lib/msf/core/framework_spec.rb index d508576fb2..7613af47a0 100644 --- a/spec/lib/msf/core/framework_spec.rb +++ b/spec/lib/msf/core/framework_spec.rb @@ -6,6 +6,18 @@ require 'msf/core/framework' describe Msf::Framework do include_context 'Msf::Framework#threads cleaner' + context '#initialize' do + subject(:framework) { + described_class.new + } + + it 'creates no threads' do + expect { + framework + }.not_to change { Thread.list.count } + end + end + describe "#version" do CURRENT_VERSION = "4.10.1-dev"