2015-12-31 16:56:13 -06:00
|
|
|
RSpec.shared_examples_for 'Msf::Module::ModuleInfo' do
|
2014-10-16 13:10:15 -05:00
|
|
|
context 'CONSTANTS' do
|
|
|
|
|
context 'UpdateableOptions' do
|
|
|
|
|
subject(:updateable_options) {
|
|
|
|
|
described_class::UpdateableOptions
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
it { is_expected.to match_array(%w{Name Description Alias PayloadCompat})}
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it { is_expected.to respond_to :alias }
|
|
|
|
|
it { is_expected.to respond_to :description }
|
|
|
|
|
it { is_expected.to respond_to :disclosure_date }
|
2014-11-12 11:08:18 -06:00
|
|
|
it { is_expected.to respond_to_protected :info_fixups }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_check_key }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_info }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_info_advanced_options }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_info_alias }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_info_description }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_info_evasion_options }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_info_name }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_info_options }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_info_string }
|
|
|
|
|
it { is_expected.to respond_to_protected :merge_info_version }
|
2014-10-16 13:10:15 -05:00
|
|
|
it { is_expected.to respond_to :name }
|
2014-11-12 11:08:18 -06:00
|
|
|
it { is_expected.to respond_to_protected :update_info }
|
2014-10-16 13:10:15 -05:00
|
|
|
end
|