From 03c193bf6c742ea445e74a009d2502d2a6bda9f8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 Oct 2013 01:50:21 +0000 Subject: add test for working_directory config parameter This is often forgotten, and we need to make a tweak to the coverage generator to dump correctly. --- test/helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/helper.rb') diff --git a/test/helper.rb b/test/helper.rb index 3f141e4..5e417ae 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -17,12 +17,13 @@ GTL = Mutex.new if ENV["COVERAGE"] require "coverage" COVMATCH = %r{/lib/yahns\b.*rb\z} + COVDUMPFILE = File.expand_path("coverage.dump") def __covmerge res = Coverage.result - # do not create the file, Makefile does htis before any tests run - File.open("coverage.dump", IO::RDWR) do |covtmp| + # do not create the file, Makefile does this before any tests run + File.open(COVDUMPFILE, IO::RDWR) do |covtmp| covtmp.binmode covtmp.sync = true -- cgit v1.2.3-24-ge0c7