Don't need rcov usually

This commit is contained in:
Chris Eppstein 2010-04-26 01:32:39 -07:00
parent fd0446fff7
commit 29d64f367f

View File

@ -17,7 +17,6 @@ require 'rubygems'
require 'rake' require 'rake'
$:.unshift File.join(File.dirname(__FILE__), 'lib') $:.unshift File.join(File.dirname(__FILE__), 'lib')
require 'compass' require 'compass'
require 'rcov/rcovtask'
# ----- Default: Testing ------ # ----- Default: Testing ------
@ -152,6 +151,8 @@ end
require 'cucumber/rake/task' require 'cucumber/rake/task'
begin
require 'rcov/rcovtask'
namespace :rcov do namespace :rcov do
Cucumber::Rake::Task.new(:cucumber) do |t| Cucumber::Rake::Task.new(:cucumber) do |t|
t.rcov = true t.rcov = true
@ -179,4 +180,7 @@ namespace :rcov do
Rake::Task["rcov:cucumber"].invoke Rake::Task["rcov:cucumber"].invoke
end end
end end
rescue LoadError
#pass
end