Skip to content

Commit 363c085

Browse files
committed
Prevent clearning unexisting task
1 parent b24714d commit 363c085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skeleton/Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exclude_paths = [
2727

2828
# Coverage from puppetlabs-spec-helper requires rcov which
2929
# doesn't work in anything since 1.8.7
30-
Rake::Task[:coverage].clear
30+
Rake::Task[:coverage].clear if Rake::Task.task_defined?(:coverage)
3131

3232
Rake::Task[:lint].clear
3333

0 commit comments

Comments
 (0)