lib/tasks/coverage.rake in p8-metric_fu-0.8.4.3 vs lib/tasks/coverage.rake in p8-metric_fu-0.8.4.4
- old
+ new
@@ -39,10 +39,10 @@
# end
end
desc "Generate and open coverage report"
task :coverage => ['coverage:do'] do
- system("open #{COVERAGE_DIR}/index.html") if PLATFORM['darwin']
+ system("open #{COVERAGE_DIR}/index.html") if MetricFu.open_in_browser?
end
end
rescue LoadError
if RUBY_PLATFORM =~ /java/
puts 'running in jruby - rcov tasks not available'
\ No newline at end of file