CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/support/shared/examples/payload_not_cached.rb
Views: 11784
1
RSpec.shared_examples_for 'payload is not cached' do |options|
2
options.assert_valid_keys(:ancestor_reference_names, :reference_name)
3
4
reference_name = options.fetch(:reference_name)
5
6
ancestor_reference_names = options.fetch(:ancestor_reference_names)
7
8
module_type = 'payload'
9
10
context reference_name do
11
ancestor_reference_names.each do |ancestor_reference_name|
12
it "has listed ancestors '#{module_type}/#{ancestor_reference_name}'" do
13
@actual_ancestor_reference_name_set.add(ancestor_reference_name)
14
end
15
end
16
17
end
18
end
19
20