Skip to content

Commit

Permalink
chore: Suppress noisy logging during specs
Browse files Browse the repository at this point in the history
This change uses StringIO.new instead of /dev/null in case someone wants to run
the specs on a non-Unix system.
  • Loading branch information
md5 committed Sep 16, 2016
1 parent bbc29c0 commit a932cf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
require 'rexml/xpath'
require 'base64'

TEST_LOGGER = Logger.new(StringIO.new)
OneLogin::RubySaml::Logging.logger = TEST_LOGGER
OmniAuth.config.logger = TEST_LOGGER

RSpec.configure do |config|
config.include Rack::Test::Methods
end
Expand Down

0 comments on commit a932cf6

Please sign in to comment.