Extract Msf::Module::UI::Message shared examples

MSP-11126
bug/bundler_fix
Luke Imhoff 2014-10-16 09:45:17 -05:00
parent bc2bd99698
commit 96864b3892
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
3 changed files with 11 additions and 5 deletions

View File

@ -78,13 +78,8 @@ 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 :post? }
it { is_expected.to respond_to :print_error }
it { is_expected.to respond_to :print_good }
it { is_expected.to respond_to :print_line }
it { is_expected.to respond_to :print_line_prefix }
it { is_expected.to respond_to :print_prefix }
it { is_expected.to respond_to :print_status }
it { is_expected.to respond_to :print_warning }
it { is_expected.to respond_to :privileged? }
it { is_expected.to respond_to :rank }
it { is_expected.to respond_to :rank_to_h }
@ -114,6 +109,7 @@ describe Msf::Module do
it_should_behave_like 'Msf::Module::Compatibility'
it_should_behave_like 'Msf::Module::DataStore'
it_should_behave_like 'Msf::Module::ModuleStore'
it_should_behave_like 'Msf::Module::UI'
context 'CONSTANTS' do
context 'UpdateableOptions' do

View File

@ -0,0 +1,3 @@
shared_examples_for 'Msf::Module::UI' do
it_should_behave_like 'Msf::Module::UI::Message'
end

View File

@ -0,0 +1,7 @@
shared_examples_for 'Msf::Module::UI::Message' do
it { is_expected.to respond_to :print_error }
it { is_expected.to respond_to :print_good }
it { is_expected.to respond_to :print_prefix }
it { is_expected.to respond_to :print_status }
it { is_expected.to respond_to :print_warning }
end