Extract Msf::Module::Rank shared examples

MSP-11126
bug/bundler_fix
Luke Imhoff 2014-10-16 14:41:59 -05:00
parent d5c7a50e86
commit c501e1e58a
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
2 changed files with 16 additions and 3 deletions

View File

@ -54,9 +54,6 @@ describe Msf::Module do
it { is_expected.to respond_to :platform? }
it { is_expected.to respond_to :platform_to_s }
it { is_expected.to respond_to :privileged? }
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 }
it { is_expected.to respond_to :refname }
it { is_expected.to respond_to :register_parent }
it { is_expected.to respond_to :replicant }
@ -73,6 +70,7 @@ describe Msf::Module do
it_should_behave_like 'Msf::Module::ModuleInfo'
it_should_behave_like 'Msf::Module::ModuleStore'
it_should_behave_like 'Msf::Module::Options'
it_should_behave_like 'Msf::Module::Rank'
it_should_behave_like 'Msf::Module::Type'
it_should_behave_like 'Msf::Module::UI'

View File

@ -0,0 +1,15 @@
shared_examples_for 'Msf::Module::Rank' 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