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

18 lines
423 B
Ruby
Raw Normal View History

2015-10-20 09:54:02 -05:00
RSpec.shared_context 'Msf::DBManager' do
2013-09-30 13:47:53 -05:00
include_context 'Msf::Simple::Framework'
2013-09-30 13:47:53 -05:00
let(:active) do
true
end
2013-04-25 09:46:53 -05:00
2013-09-30 13:47:53 -05:00
let(:db_manager) do
framework.db
end
2015-12-31 16:56:13 -06:00
before(:example) do
# already connected due to use_transactional_fixtures, but need some of the side-effects of #connect
framework.db.workspace = framework.db.default_workspace
2015-10-20 15:52:30 -05:00
allow(db_manager).to receive(:active).and_return(active)
2013-09-30 13:47:53 -05:00
end
2014-08-26 15:24:08 -05:00
end