Skip to content

Commit

Permalink
Land #19109, Fixes pry-byebug functionality when running credential_c…
Browse files Browse the repository at this point in the history
…ollection_spec.rb
  • Loading branch information
adfoster-r7 authored Apr 18, 2024
2 parents c9dfb7e + 4186d00 commit ba18e63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/lib/metasploit/framework/credential_collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
)
end

before(:each) do
# The test suite overrides File.open(...) calls; fall back to the normal behavior for any File.open calls that aren't explicitly mocked
allow(File).to receive(:open).with(anything).and_call_original
allow(File).to receive(:open).with(anything, anything).and_call_original
allow(File).to receive(:open).with(anything, anything, anything).and_call_original
end

let(:nil_passwords) { nil }
let(:blank_passwords) { nil }
let(:username) { "user" }
Expand Down

0 comments on commit ba18e63

Please sign in to comment.