test/test_helper.rb in coverband-4.2.0.alpha vs test/test_helper.rb in coverband-4.2.0.beta

- old
+ new

@@ -93,9 +93,13 @@ def source_fixture(filename) File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', filename)) end +def test_root + File.expand_path(File.join(File.dirname(__FILE__))) +end + # Taken from http://stackoverflow.com/questions/4459330/how-do-i-temporarily-redirect-stderr-in-ruby def capture_stderr # The output stream must be an IO-like object. In this case we capture it in # an in-memory IO object so we can return the string value. You can assign any # IO object here.