lib/templates.rake in foreman_templates-1.3.1 vs lib/templates.rake in foreman_templates-1.3.2

- old
+ new

@@ -190,8 +190,10 @@ end Rake::Task[:test].enhance do Rake::Task['test:templates'].invoke end load 'tasks/jenkins.rake' -Rake::Task["jenkins:unit"].enhance do - Rake::Task['test:templates'].invoke +if Rake::Task.task_defined?('jenkins:unit') + Rake::Task["jenkins:unit"].enhance do + Rake::Task['test:templates'].invoke + end end