Skip to content

Commit 0daa395

Browse files
committed
Fix specs for LoginError cases
1 parent c522635 commit 0daa395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/lib/metasploit/framework/login_scanner/smb_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
0xC0000224, # => "STATUS_PASSWORD_MUST_CHANGE",
9595
].each do |code|
9696
it "returns a status of :correct" do
97-
exception = Rex::Proto::SMB::Exceptions::ErrorCode.new
97+
exception = Rex::Proto::SMB::Exceptions::LoginError.new
9898
exception.error_code = code
9999

100100
login_scanner.stub_chain(:simple, :login).and_raise exception

0 commit comments

Comments
 (0)