File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spec/lib/metasploit/framework/login_scanner Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 76
76
77
77
context '#try_login' do
78
78
it 'sends a login request to /j_security_check' do
79
- http_scanner . should_receive ( :send_request ) . with ( hash_including ( 'uri' => '/j_security_check' ) )
79
+ expect ( http_scanner ) . to receive ( :send_request ) . with ( hash_including ( 'uri' => '/j_security_check' ) )
80
80
http_scanner . try_login ( cred )
81
81
end
82
82
83
83
it 'sends a login request containing the username and password' do
84
- http_scanner . should_receive ( :send_request ) . with ( hash_including ( 'data' => "j_username=#{ username } &j_password=#{ password } &loginButton=Login" ) )
84
+ expect ( http_scanner ) . to receive ( :send_request ) . with ( hash_including ( 'data' => "j_username=#{ username } &j_password=#{ password } &loginButton=Login" ) )
85
85
http_scanner . try_login ( cred )
86
86
end
87
87
end
You can’t perform that action at this time.
0 commit comments