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"
+ STDERR.puts(
+ "Please install rcov and ensure that its binary is in the PATH:"
+ )
+ STDERR.puts("sudo gem install rcov")
exit(1)
end
t.rcov = true
t.rcov = false
end
t.rcov_opts = [
+ '--exclude', 'lib\\/compat',
'--exclude', 'spec',
+ '--exclude', '\\.rvm\\/gems',
'--exclude', '1\\.8\\/gems',
- '--exclude', '1\\.9\\/gems'
+ '--exclude', '1\\.9\\/gems',
+ '--exclude', '\\.rvm',
+ '--exclude', '\\/Library\\/Ruby',
]
end