summaryrefslogtreecommitdiff
path: root/lib/tasks/spec.rake
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-14 14:23:28 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-14 14:23:28 +0200
commitfa3c087a4cad7a62b2aec9df88d379c1822e0d0c (patch)
tree999fff8b60d4e9442238366696618c2faeca48e5 /lib/tasks/spec.rake
parentb5d81174fb12296ade36ec1f52546b8527bbdcf1 (diff)
downloadgitlab-ce-fa3c087a4cad7a62b2aec9df88d379c1822e0d0c.tar.gz
Clear rake task only if defined
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/tasks/spec.rake')
-rw-r--r--lib/tasks/spec.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/spec.rake b/lib/tasks/spec.rake
index 4e562459e15..90a1809914b 100644
--- a/lib/tasks/spec.rake
+++ b/lib/tasks/spec.rake
@@ -1,4 +1,4 @@
-Rake::Task["spec"].clear
+Rake::Task["spec"].clear if Rake::Task.task_defined?('spec')
desc "GITLAB | Run specs"
task :spec do