File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
spec/support/shared/contexts/msf/simple/framework/modules Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ def derive_ancestor_reference_names(options={})
55
55
end
56
56
57
57
# 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 ]
59
61
}
60
62
end
61
63
@@ -89,7 +91,7 @@ def expect_to_load_module_ancestor(options={})
89
91
loader = loader_for_modules_path ( modules_path )
90
92
loaded = loader . load_module ( modules_path , module_type , ancestor_reference_name )
91
93
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 } "
93
95
end
94
96
95
97
# Expects to laod `:ancestor_reference_names` of `:module_type` from `:modules_path`
You can’t perform that action at this time.
0 commit comments