and receive needed to be and_return

This commit is contained in:
Greg Mikeska 2015-12-08 10:34:29 -06:00 committed by Brent Cook
parent aca4c6a986
commit 605756a500
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ RSpec.describe Msf::Modules::Loader::Base do
it 'should set the parent_path on the namespace_module to match the parent_path passed to #load_module' do
allow(module_manager).to receive(:on_module_load)
allow(subject).to receive(:read_module_content).and_receive(module_content)
allow(subject).to receive(:read_module_content).and_return(module_content)
expect(subject.load_module(parent_path, type, module_reference_name)).to be_truthy