Skip to content

Commit d517281

Browse files
committed
Prevent CredentialsProcess warns from printing in rspec
1 parent 24f1619 commit d517281

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gems/aws-sdk-core/spec/aws/credential_resolution_chain_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
module Aws
66
describe 'Credential Resolution Chain' do
7+
before(:each) do
8+
allow_any_instance_of(ProcessCredentials).to receive(:warn)
9+
end
10+
711
let(:mock_credential_file) do
812
File.expand_path(
913
File.join(

0 commit comments

Comments
 (0)