Files
metasploit-gs/spec/support/shared/contexts/msf/simple/framework.rb
T

30 lines
672 B
Ruby
Raw Normal View History

# -*- coding:binary -*-
2013-04-01 16:06:40 -05:00
require 'msf/base/simple/framework'
require 'metasploit/framework'
shared_context 'Msf::Simple::Framework' do
2013-09-30 13:47:53 -05:00
let(:dummy_pathname) do
2014-06-05 12:40:24 -05:00
Rails.root.join('spec', 'dummy')
2013-09-30 13:47:53 -05:00
end
let(:framework) do
Msf::Simple::Framework.create(
'ConfigDirectory' => framework_config_pathname.to_s,
# don't load any module paths so we can just load the module under test and save time
'DeferModuleLoads' => true
)
end
let(:framework_config_pathname) do
dummy_pathname.join('framework', 'config')
end
before(:each) do
framework_config_pathname.mkpath
end
after(:each) do
dummy_pathname.rmtree
end
2013-04-01 16:06:40 -05:00
end