Fix mysql rspec

bug/bundler_fix
sinn3r 2014-10-21 16:34:10 -05:00
parent ebbfa56f24
commit b5d536d165
1 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ describe Metasploit::Framework::LoginScanner::MySQL do
it 'returns a result with the proof containing an appropriate error message' do
::RbMysql.should_receive(:connect).and_raise Errno::ECONNREFUSED
expect(login_scanner.attempt_login(pub_pub).proof).to eq "Connection refused"
expect(login_scanner.attempt_login(pub_pub).proof.message).to eq "Connection refused"
end
end
@ -63,7 +63,7 @@ describe Metasploit::Framework::LoginScanner::MySQL do
it 'returns a result with the proof containing an appropriate error message' do
::RbMysql.should_receive(:connect).and_raise RbMysql::ClientError
expect(login_scanner.attempt_login(pub_pub).proof).to eq "Connection timeout"
expect(login_scanner.attempt_login(pub_pub).proof.message).to eq "RbMysql::ClientError"
end
end
@ -75,7 +75,7 @@ describe Metasploit::Framework::LoginScanner::MySQL do
it 'returns a result with the proof containing an appropriate error message' do
::RbMysql.should_receive(:connect).and_raise Errno::ETIMEDOUT
expect(login_scanner.attempt_login(pub_pub).proof).to eq "Operation Timed out"
expect(login_scanner.attempt_login(pub_pub).proof.message).to eq "Operation timed out"
end
end
@ -87,7 +87,7 @@ describe Metasploit::Framework::LoginScanner::MySQL do
it 'returns a result with the proof containing an appropriate error message' do
::RbMysql.should_receive(:connect).and_raise RbMysql::HostNotPrivileged, "Host not privileged"
expect(login_scanner.attempt_login(pub_pub).proof).to eq "Unable to login from this host due to policy"
expect(login_scanner.attempt_login(pub_pub).proof.message).to eq "Host not privileged"
end
end
@ -99,7 +99,7 @@ describe Metasploit::Framework::LoginScanner::MySQL do
it 'returns a result with the proof containing an appropriate error message' do
::RbMysql.should_receive(:connect).and_raise RbMysql::AccessDeniedError, "Access Denied"
expect(login_scanner.attempt_login(pub_pub).proof).to eq "Access Denied"
expect(login_scanner.attempt_login(pub_pub).proof.message).to eq "Access Denied"
end
end
end