lib/tasks/coverage.rake in p8-metric_fu-0.8.4 vs lib/tasks/coverage.rake in p8-metric_fu-0.8.4.1
- old
+ new
@@ -21,9 +21,11 @@
Rcov::RcovTask.new(:do => :clean) do |t|
FileUtils.mkdir_p(MetricFu::BASE_DIRECTORY) unless File.directory?(MetricFu::BASE_DIRECTORY)
t.test_files = FileList['test/**/*_test.rb', 'spec/**/*_spec.rb']
t.rcov_opts = ["--sort coverage", "--html", "--rails", "--exclude /gems/,/Library/"]
t.output_dir = COVERAGE_DIR
+ # this line is a fix for Rails 2.1 relative loading issues
+ t.libs << 'test'
end
# TODO not sure what this improves but it requires the diff-lcs gem
# http://github.com/indirect/metric_fu/commit/b9c1cf75f09d5b531b388cd01661eb16b5126968#diff-1
# Spec::Rake::SpecTask.new(:do => :clean) do |t|
# FileUtils.mkdir_p(MetricFu::BASE_DIRECTORY) unless File.directory?(MetricFu::BASE_DIRECTORY)
\ No newline at end of file