diff --git a/lib/jasmine/headless/task.rb b/lib/jasmine/headless/task.rb index ed3dfdf..6288c9c 100644 --- a/lib/jasmine/headless/task.rb +++ b/lib/jasmine/headless/task.rb @@ -3,11 +3,7 @@ require 'jasmine/headless/runner' module Jasmine module Headless class Task - begin - include Rake::DSL - rescue NameError - # never mind - end + include Rake::DSL if defined?(Rake::DSL) attr_accessor :colors, :keep_on_error, :jasmine_config