Fix spec tests to match existing methods
parent
73393b236c
commit
7e145a09de
|
@ -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 }
|
||||||
|
|
|
@ -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 }
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue