Don't need rcov usually
This commit is contained in:
parent
fd0446fff7
commit
29d64f367f
6
Rakefile
6
Rakefile
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user