# RSpec output contains ridiculously excessive line returns

**URL:** <https://www.ruby-forum.com/t/rspec-output-contains-ridiculously-excessive-line-returns/145721>\
**Category:** Ruby\
**Created:** [August 13, 2008, 10:42am UTC](https://www.ruby-forum.com/t/rspec-output-contains-ridiculously-excessive-line-returns/145721 "2008-08-13T10:42:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliottcable](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@elliottcable](https://www.ruby-forum.com/u/elliottcable)\
**Post date:** [August 13, 2008, 10:42am UTC](https://www.ruby-forum.com/t/rspec-output-contains-ridiculously-excessive-line-returns/145721/1 "2008-08-13T10:42:38Z")

</div>

I don’t know where else to send this, or I wouldn’t bother the general  
Ruby list with it.

RCov is outputting really weird markup on my computer:  
[http://pastie.org/251121](http://pastie.org/251121)

Snippet:

> C0  
> code  
> coverage  
> information

I’m using the standard Spec::Rake::SpecTask#new method to create a  
rcov rake task, and running said task - here’s my rake task:

> t.spec\_opts = [“–format”, “specdoc”, “–colour”]  
> t.spec\_files = Dir[‘spec/\*\*/\*\_spec.rb’].sort  
> t.libs = [‘lib’]  
> t.rcov = true  
> t.rcov\_dir = ‘meta’ / ‘coverage’

More confusing yet, it works the ‘normal’ way - i.e., I create a  
runner file like this:

> require ‘rubygems’  
> require ‘spec’  
> Dir.glob(‘test/\*\*/\*\_spec.rb’).each do |f|  
> load f.gsub(/.rb$/, ‘’)  
> end

And then run something like this, and it generates clean normal RCov  
HTML output:

> rcov --text-summary -Ilib --html spec/runner.rb

It’s happening on my friend’s computer as well, so it’s not a local  
problem - I’d really like help debugging this, RCov is a very central  
tool in my development process \>,\>
