Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/support/shared/examples/msf/module/ranking.rb
25011 views
1
RSpec.shared_examples_for 'Msf::Module::Ranking' do
2
it { is_expected.to respond_to :rank }
3
it { is_expected.to respond_to :rank_to_h }
4
it { is_expected.to respond_to :rank_to_s }
5
6
context 'class' do
7
subject {
8
described_class
9
}
10
11
it { is_expected.to respond_to :rank }
12
it { is_expected.to respond_to :rank_to_h }
13
it { is_expected.to respond_to :rank_to_s }
14
end
15
end
16