From e2020bbab39e5a09e186bd98eaa1aa20a582f3e1 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 27 Sep 2016 22:08:18 +0200 Subject: [PATCH] Skip logger helper in coverage --- lib/github_changelog_generator/helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/github_changelog_generator/helper.rb b/lib/github_changelog_generator/helper.rb index b529d36..fd61ed3 100644 --- a/lib/github_changelog_generator/helper.rb +++ b/lib/github_changelog_generator/helper.rb @@ -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