From 96352d21a06b2a650a6b27d3e2929148b7fda2a9 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 16 Jun 2011 19:33:36 -0400 Subject: [PATCH] only load the rake dsl in if it's possible --- lib/jasmine/headless/task.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/jasmine/headless/task.rb b/lib/jasmine/headless/task.rb index 43b7e0b..97a5b6b 100644 --- a/lib/jasmine/headless/task.rb +++ b/lib/jasmine/headless/task.rb @@ -1,7 +1,11 @@ module Jasmine module Headless class Task - include Rake::DSL + begin + include Rake::DSL + rescue NameError + # never mind + end attr_accessor :colors, :keep_on_error, :jasmine_config