Fix derive_module_ancestor_names

MSP-11130

Wrap :reference_name in an Array since :ancestor_reference_names is
expected to be an Array.
bug/bundler_fix
Luke Imhoff 2014-11-04 09:40:55 -06:00
parent 9ea1240cbb
commit ff0391cdc7
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 4 additions and 2 deletions

View File

@ -55,7 +55,9 @@ shared_context 'Msf::Simple::Framework#modules loading' do
end
# non-payload's single ancestor has the same reference name as the created module.
options.fetch(:reference_name)
reference_name = options.fetch(:reference_name)
[reference_name]
}
end
@ -89,7 +91,7 @@ shared_context 'Msf::Simple::Framework#modules loading' do
loader = loader_for_modules_path(modules_path)
loaded = loader.load_module(modules_path, module_type, ancestor_reference_name)
expect(loaded).to eq(true), "#{ancestor_reference_name} failed to load from #{modules_path}"
expect(loaded).to eq(true), "#{module_type}/#{ancestor_reference_name} failed to load from #{modules_path}"
end
# Expects to laod `:ancestor_reference_names` of `:module_type` from `:modules_path`