Merge pull request #421 from olleolleolle/fix/coverage-skip-logger-helper

Skip logger helper in coverage
This commit is contained in:
Olle Jonsson 2016-09-27 22:24:17 +02:00 committed by GitHub
commit dcd15d1f5d

View File

@ -9,6 +9,7 @@ module GitHubChangelogGenerator
defined? SpecHelper
end
# :nocov:
@log ||= if test?
Logger.new(nil) # don't show any logs when running tests
else
@ -25,6 +26,7 @@ module GitHubChangelogGenerator
else string
end
end
# :nocov:
# Logging happens using this method
class << self