|
38 | 38 | REF_TYPES = %w(CVE BID OSVDB EDB)
|
39 | 39 |
|
40 | 40 | describe Msf::Module do
|
| 41 | + it { is_expected.to respond_to :[] } |
| 42 | + it { is_expected.to respond_to :[]= } |
| 43 | + it { is_expected.to respond_to :alias } |
| 44 | + it { is_expected.to respond_to :arch? } |
| 45 | + it { is_expected.to respond_to :arch_to_s } |
| 46 | + it { is_expected.to respond_to :author_to_s } |
| 47 | + it { is_expected.to respond_to :auxiliary? } |
| 48 | + it { is_expected.to respond_to :check } |
| 49 | + it { is_expected.to respond_to :comm } |
| 50 | + it { is_expected.to respond_to :compat } |
| 51 | + it { is_expected.to respond_to :compatible? } |
| 52 | + it { is_expected.to respond_to :debugging? } |
| 53 | + it { is_expected.to respond_to :deregister_options } |
| 54 | + it { is_expected.to respond_to :derived_implementor? } |
| 55 | + it { is_expected.to respond_to :description } |
| 56 | + it { is_expected.to respond_to :disclosure_date } |
| 57 | + it { is_expected.to respond_to :each_arch } |
| 58 | + it { is_expected.to respond_to :each_author } |
| 59 | + it { is_expected.to respond_to :encoder? } |
| 60 | + it { is_expected.to respond_to :exploit? } |
| 61 | + it { is_expected.to respond_to :fail_with } |
| 62 | + it { is_expected.to respond_to :file_path } |
| 63 | + it { is_expected.to respond_to :framework } |
| 64 | + it { is_expected.to respond_to :fullname } |
| 65 | + it { is_expected.to respond_to :generate_uuid } |
| 66 | + it { is_expected.to respond_to :import_defaults } |
| 67 | + it { is_expected.to respond_to :info_fixups } |
| 68 | + it { is_expected.to respond_to :init_compat } |
| 69 | + it { is_expected.to respond_to :merge_check_key } |
| 70 | + it { is_expected.to respond_to :merge_info } |
| 71 | + it { is_expected.to respond_to :merge_info_advanced_options } |
| 72 | + it { is_expected.to respond_to :merge_info_alias } |
| 73 | + it { is_expected.to respond_to :merge_info_description } |
| 74 | + it { is_expected.to respond_to :merge_info_evasion_options } |
| 75 | + it { is_expected.to respond_to :merge_info_name } |
| 76 | + it { is_expected.to respond_to :merge_info_options } |
| 77 | + it { is_expected.to respond_to :merge_info_string } |
| 78 | + it { is_expected.to respond_to :merge_info_version } |
| 79 | + it { is_expected.to respond_to :name } |
| 80 | + it { is_expected.to respond_to :nop? } |
| 81 | + it { is_expected.to respond_to :orig_cls } |
| 82 | + it { is_expected.to respond_to :owner } |
| 83 | + it { is_expected.to respond_to :payload? } |
| 84 | + it { is_expected.to respond_to :platform? } |
| 85 | + it { is_expected.to respond_to :platform_to_s } |
| 86 | + it { is_expected.to respond_to :post? } |
| 87 | + it { is_expected.to respond_to :print_error } |
| 88 | + it { is_expected.to respond_to :print_good } |
| 89 | + it { is_expected.to respond_to :print_line } |
| 90 | + it { is_expected.to respond_to :print_line_prefix } |
| 91 | + it { is_expected.to respond_to :print_prefix } |
| 92 | + it { is_expected.to respond_to :print_status } |
| 93 | + it { is_expected.to respond_to :print_warning } |
| 94 | + it { is_expected.to respond_to :privileged? } |
| 95 | + it { is_expected.to respond_to :rank } |
| 96 | + it { is_expected.to respond_to :rank_to_h } |
| 97 | + it { is_expected.to respond_to :rank_to_s } |
| 98 | + it { is_expected.to respond_to :refname } |
| 99 | + it { is_expected.to respond_to :register_advanced_options } |
| 100 | + it { is_expected.to respond_to :register_evasion_options } |
| 101 | + it { is_expected.to respond_to :register_options } |
| 102 | + it { is_expected.to respond_to :register_parent } |
| 103 | + it { is_expected.to respond_to :replicant } |
| 104 | + it { is_expected.to respond_to :set_defaults } |
| 105 | + it { is_expected.to respond_to :share_datastore } |
| 106 | + it { is_expected.to respond_to :shortname } |
| 107 | + it { is_expected.to respond_to :support_ipv6? } |
| 108 | + it { is_expected.to respond_to :target_host } |
| 109 | + it { is_expected.to respond_to :target_port } |
| 110 | + it { is_expected.to respond_to :type } |
| 111 | + it { is_expected.to respond_to :update_info } |
| 112 | + it { is_expected.to respond_to :validate } |
| 113 | + it { is_expected.to respond_to :vprint_debug } |
| 114 | + it { is_expected.to respond_to :vprint_error } |
| 115 | + it { is_expected.to respond_to :vprint_good } |
| 116 | + it { is_expected.to respond_to :vprint_line } |
| 117 | + it { is_expected.to respond_to :vprint_status } |
| 118 | + it { is_expected.to respond_to :vprint_warning } |
| 119 | + it { is_expected.to respond_to :workspace } |
| 120 | + |
| 121 | + context 'CONSTANTS' do |
| 122 | + context 'UpdateableOptions' do |
| 123 | + subject(:updateable_options) { |
| 124 | + described_class::UpdateableOptions |
| 125 | + } |
| 126 | + |
| 127 | + it { is_expected.to match_array(%w{Name Description Alias PayloadCompat})} |
| 128 | + end |
| 129 | + end |
| 130 | + |
| 131 | + context 'class' do |
| 132 | + subject { |
| 133 | + described_class |
| 134 | + } |
| 135 | + |
| 136 | + it { is_expected.to respond_to :cached? } |
| 137 | + it { is_expected.to respond_to :fullname } |
| 138 | + it { is_expected.to respond_to :is_usable } |
| 139 | + it { is_expected.to respond_to :rank } |
| 140 | + it { is_expected.to respond_to :rank_to_h } |
| 141 | + it { is_expected.to respond_to :rank_to_s } |
| 142 | + it { is_expected.to respond_to :shortname } |
| 143 | + it { is_expected.to respond_to :type } |
| 144 | + end |
| 145 | + |
41 | 146 | describe '#search_filter' do
|
42 | 147 | let(:opts) { Hash.new }
|
43 | 148 | before { subject.stub(:fullname => '/module') }
|
|
0 commit comments