tasks/test.rake in logging-0.7.1 vs tasks/test.rake in logging-0.8.0
- old
+ new
@@ -4,22 +4,22 @@
namespace :test do
Rake::TestTask.new(:run) do |t|
t.libs = PROJ.libs
- t.test_files = if test(?f, PROJ.test_file) then [PROJ.test_file]
- else PROJ.tests end
+ t.test_files = if test(?f, PROJ.test.file) then [PROJ.test.file]
+ else PROJ.test.files end
t.ruby_opts += PROJ.ruby_opts
- t.ruby_opts += PROJ.test_opts
+ t.ruby_opts += PROJ.test.opts
end
if HAVE_RCOV
desc 'Run rcov on the unit tests'
task :rcov => :clobber_rcov do
- opts = PROJ.rcov_opts.dup << '-o' << PROJ.rcov_dir
+ opts = PROJ.rcov.opts.dup << '-o' << PROJ.rcov.dir
opts = opts.join(' ')
- files = if test(?f, PROJ.test_file) then [PROJ.test_file]
- else PROJ.tests end
+ files = if test(?f, PROJ.test.file) then [PROJ.test.file]
+ else PROJ.test.files end
files = files.join(' ')
sh "#{RCOV} #{files} #{opts}"
end
task :clobber_rcov do