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/msf/module/ranking.rb
Views: 11655
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