Merge pull request #421 from olleolleolle/fix/coverage-skip-logger-helper
Skip logger helper in coverage
This commit is contained in:
commit
dcd15d1f5d
|
@ -9,6 +9,7 @@ module GitHubChangelogGenerator
|
||||||
defined? SpecHelper
|
defined? SpecHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# :nocov:
|
||||||
@log ||= if test?
|
@log ||= if test?
|
||||||
Logger.new(nil) # don't show any logs when running tests
|
Logger.new(nil) # don't show any logs when running tests
|
||||||
else
|
else
|
||||||
|
@ -25,6 +26,7 @@ module GitHubChangelogGenerator
|
||||||
else string
|
else string
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# :nocov:
|
||||||
|
|
||||||
# Logging happens using this method
|
# Logging happens using this method
|
||||||
class << self
|
class << self
|
||||||
|
|
Loading…
Reference in New Issue
Block a user