Skip to content

Commit

Permalink
be more specific with mssql mock
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-r7 committed Feb 12, 2024
1 parent f9fb803 commit 43eb2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/lib/msf/base/sessions/mssql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
allow(user_input).to receive(:intrinsic_shell?).and_return(true)
allow(user_input).to receive(:output=)
allow(client).to receive(:sock).and_return(rstream)
allow(client).to receive(:mssql_query).and_return(query_result)
allow(client).to receive(:mssql_query).with('SELECT DB_NAME();').and_return(query_result)
allow(rstream).to receive(:peerinfo).and_return(peer_info)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

before(:each) do
allow(client).to receive(:sock).and_return(rstream)
allow(client).to receive(:mssql_query).and_return(query_result)
allow(client).to receive(:mssql_query).with('SELECT DB_NAME();').and_return(query_result)
allow(rstream).to receive(:peerinfo).and_return(peer_info)
allow(session).to receive(:client).and_return(client)
allow(session).to receive(:console).and_return(console)
Expand Down

0 comments on commit 43eb2a7

Please sign in to comment.