Fix spec tests to match existing methods

GSoC/Meterpreter_Web_Console
Matthew Kienow 2018-05-14 17:43:24 -04:00
parent 73393b236c
commit 7e145a09de
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
3 changed files with 5 additions and 7 deletions

View File

@ -6,7 +6,6 @@ RSpec.shared_examples_for 'Msf::DBManager::Host' do
it { is_expected.to respond_to :has_host? } it { is_expected.to respond_to :has_host? }
end end
it { is_expected.to respond_to :find_or_create_host } it { is_expected.to respond_to :find_or_create_host }
it { is_expected.to respond_to :get_host } it { is_expected.to respond_to :get_host }
it { is_expected.to respond_to :hosts } it { is_expected.to respond_to :hosts }

View File

@ -1,10 +1,9 @@
RSpec.shared_examples_for 'Msf::DBManager::Note' do RSpec.shared_examples_for 'Msf::DBManager::Note' do
if ENV['REMOTE_DB'] unless ENV['REMOTE_DB']
before {skip("Awaiting port")} it { is_expected.to respond_to :each_note }
end end
it { is_expected.to respond_to :each_note }
it { is_expected.to respond_to :find_or_create_note } it { is_expected.to respond_to :find_or_create_note }
it { is_expected.to respond_to :notes } it { is_expected.to respond_to :notes }
it { is_expected.to respond_to :report_note } it { is_expected.to respond_to :report_note }

View File

@ -1,12 +1,12 @@
RSpec.shared_examples_for 'Msf::DBManager::Service' do RSpec.shared_examples_for 'Msf::DBManager::Service' do
it { is_expected.to respond_to :delete_service }
unless ENV['REMOTE_DB'] unless ENV['REMOTE_DB']
it { is_expected.to respond_to :delete_service }
it { is_expected.to respond_to :each_service } it { is_expected.to respond_to :each_service }
it { is_expected.to respond_to :find_or_create_service }
it { is_expected.to respond_to :get_service } it { is_expected.to respond_to :get_service }
end end
it { is_expected.to respond_to :report_service } it { is_expected.to respond_to :find_or_create_service }
it { is_expected.to respond_to :services } it { is_expected.to respond_to :services }
it { is_expected.to respond_to :report_service }
end end