Extract Msf::Module::Author shared examples

MSP-11126
bug/bundler_fix
Luke Imhoff 2014-10-17 11:20:23 -05:00
parent a59e635913
commit d86eda5f1d
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
2 changed files with 5 additions and 3 deletions

View File

@ -3,12 +3,9 @@ require 'spec_helper'
require 'msf/core/module' require 'msf/core/module'
describe Msf::Module do describe Msf::Module do
it { is_expected.to respond_to :author }
it { is_expected.to respond_to :author_to_s }
it { is_expected.to respond_to :check } it { is_expected.to respond_to :check }
it { is_expected.to respond_to :debugging? } it { is_expected.to respond_to :debugging? }
it { is_expected.to respond_to :derived_implementor? } it { is_expected.to respond_to :derived_implementor? }
it { is_expected.to respond_to :each_author }
it { is_expected.to respond_to :fail_with } it { is_expected.to respond_to :fail_with }
it { is_expected.to respond_to :file_path } it { is_expected.to respond_to :file_path }
it { is_expected.to respond_to :framework } it { is_expected.to respond_to :framework }

View File

@ -0,0 +1,5 @@
shared_examples_for 'Msf::Module::Author' do
it { is_expected.to respond_to :author }
it { is_expected.to respond_to :author_to_s }
it { is_expected.to respond_to :each_author }
end