Make sure fail case is correct

`rand(1000)` would return 0 one in a thousand times, causing this test to
randomly fail at that interval
bug/bundler_fix
James Lee 2014-05-14 10:22:47 -05:00
parent 8a9027b21d
commit 08a7acef3f
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ shared_examples_for 'Metasploit::Framework::LoginScanner::Base' do
end
it 'is not valid for a number greater than 65535' do
login_scanner.port = rand(1000) + 65535
login_scanner.port = 65536
expect(login_scanner).to_not be_valid
expect(login_scanner.errors[:port]).to include "must be less than or equal to 65535"
end
@ -332,4 +332,4 @@ shared_examples_for 'Metasploit::Framework::LoginScanner::Base' do
end
end
end
end