c6656e4031
not strictly required, these conversions keep us up to date with latest rspec conventions and best practices which will prevent use from having to convert them when they become deprecated later
15 lines
398 B
Ruby
15 lines
398 B
Ruby
RSpec.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 |