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
This commit is contained in:
bobaman@google.com 2010-08-17 22:09:41 +00:00
parent e6ba0f6860
commit a22a8338f2
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,11 @@ namespace :spec do
t.spec_files = FileList['spec/**/*_spec.rb'] t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ['--require', 'rubygems', '--color', '--format', 'specdoc'] t.spec_opts = ['--require', 'rubygems', '--color', '--format', 'specdoc']
if RCOV_ENABLED 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 t.rcov = true
else else
t.rcov = false t.rcov = false