Skip to content

Commit a932cf6

Browse files
committed
chore: Suppress noisy logging during specs
This change uses StringIO.new instead of /dev/null in case someone wants to run the specs on a non-Unix system.
1 parent bbc29c0 commit a932cf6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
require 'rexml/xpath'
1616
require 'base64'
1717

18+
TEST_LOGGER = Logger.new(StringIO.new)
19+
OneLogin::RubySaml::Logging.logger = TEST_LOGGER
20+
OmniAuth.config.logger = TEST_LOGGER
21+
1822
RSpec.configure do |config|
1923
config.include Rack::Test::Methods
2024
end

0 commit comments

Comments
 (0)