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.
bug/bundler_fix
Luke Imhoff 2014-11-12 13:41:30 -06:00
parent 2fc6154ce9
commit cca82f4b36
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 12 additions and 0 deletions

View File

@ -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"