Skip to content

Commit ff0391c

Browse files
committed
Fix derive_module_ancestor_names
MSP-11130 Wrap :reference_name in an Array since :ancestor_reference_names is expected to be an Array.
1 parent 9ea1240 commit ff0391c

File tree

1 file changed

+4
-2
lines changed
  • spec/support/shared/contexts/msf/simple/framework/modules

1 file changed

+4
-2
lines changed

spec/support/shared/contexts/msf/simple/framework/modules/loading.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ def derive_ancestor_reference_names(options={})
5555
end
5656

5757
# non-payload's single ancestor has the same reference name as the created module.
58-
options.fetch(:reference_name)
58+
reference_name = options.fetch(:reference_name)
59+
60+
[reference_name]
5961
}
6062
end
6163

@@ -89,7 +91,7 @@ def expect_to_load_module_ancestor(options={})
8991
loader = loader_for_modules_path(modules_path)
9092
loaded = loader.load_module(modules_path, module_type, ancestor_reference_name)
9193

92-
expect(loaded).to eq(true), "#{ancestor_reference_name} failed to load from #{modules_path}"
94+
expect(loaded).to eq(true), "#{module_type}/#{ancestor_reference_name} failed to load from #{modules_path}"
9395
end
9496

9597
# Expects to laod `:ancestor_reference_names` of `:module_type` from `:modules_path`

0 commit comments

Comments
 (0)