ae45c1b9d3
MSP-11126 So that mixin module won't appear as Rank constant that Msf::Module subclasses are supposed to define.
15 lines
392 B
Ruby
15 lines
392 B
Ruby
shared_examples_for 'Msf::Module::Ranking' do
|
|
it { is_expected.to respond_to :rank }
|
|
it { is_expected.to respond_to :rank_to_h }
|
|
it { is_expected.to respond_to :rank_to_s }
|
|
|
|
context 'class' do
|
|
subject {
|
|
described_class
|
|
}
|
|
|
|
it { is_expected.to respond_to :rank }
|
|
it { is_expected.to respond_to :rank_to_h }
|
|
it { is_expected.to respond_to :rank_to_s }
|
|
end
|
|
end |