From a22a8338f2d5b1c3659265fad3336aef30f93e96 Mon Sep 17 00:00:00 2001 From: "bobaman@google.com" Date: Tue, 17 Aug 2010 22:09:41 +0000 Subject: [PATCH] Added check to make sure Rcov is installed. git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@16 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef --- tasks/spec.rake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/spec.rake b/tasks/spec.rake index 0c1fe59e0..4f3789b6a 100644 --- a/tasks/spec.rake +++ b/tasks/spec.rake @@ -5,6 +5,11 @@ namespace :spec do t.spec_files = FileList['spec/**/*_spec.rb'] t.spec_opts = ['--require', 'rubygems', '--color', '--format', 'specdoc'] if RCOV_ENABLED + if `which rcov`.strip == "" + STDERR.puts "Please install rcov:" + STDERR.puts "sudo gem install relevance-rcov" + exit(1) + end t.rcov = true else t.rcov = false