some minor cleanup items

bug/bundler_fix
David Maloney 2014-05-28 09:26:19 -05:00
parent 32b88c2db6
commit c975d4dc49
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,4 @@
source 'https://rubygems.org'
gem 'pry'
gem 'metasploit-credential', git: 'github-metasploit-credential:rapid7/metasploit-credential.git', tag: 'v0.1.2-metasploit-credential'
# Need 3+ for ActiveSupport::Concern

View File

@ -113,7 +113,7 @@ describe Msf::Auxiliary::Report do
end
context 'when there is a matching host record' do
it 'creates a new host record' do
it 'uses the existing host record' do
opts = {
address: '192.168.172.3',
port: 445,
@ -129,7 +129,7 @@ describe Msf::Auxiliary::Report do
end
context 'when there is not a matching host record' do
it 'uses the existing host record' do
it 'create a new host record' do
opts = {
address: '192.168.172.3',
port: 445,
@ -139,7 +139,7 @@ describe Msf::Auxiliary::Report do
workspace_id: framework.db.workspace.id,
origin_type: :service
}
expect { test_object.create_credential_origin_service(opts)}.to change{Metasploit::Credential::Origin::Service.count}.by(1)
expect { test_object.create_credential_origin_service(opts)}.to change{Mdm::Host.count}.by(1)
end
end
@ -228,7 +228,7 @@ describe Msf::Auxiliary::Report do
context 'when missing an option' do
it 'throws a KeyError' do
opts = {}
expect{ test_object.create_credential_origin_session(opts)}.to raise_error KeyError
expect{ test_object.create_credential_origin_session(opts) }.to raise_error KeyError
end
end
end