Prevent ENV from leaking variables in CI output

This commit is contained in:
Stan Hu 2018-06-08 21:41:42 -07:00
parent c7dfbb9989
commit 032b8cb1cc
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ module Support
allow(ENV).to receive(:[]).and_call_original
allow(ENV).to receive(:key?).and_call_original
allow(ENV).to receive(:fetch).and_call_original
# Prevent secrets from leaking in CI
allow(ENV).to receive(:inspect).and_return([])
add_stubbed_value(STUBBED_KEY, true)
end
end