Colour support in RSpec 1.3 with Spork

18 views
Skip to first unread message

Ashley Moran

unread,
Apr 14, 2010, 5:31:30 AM4/14/10
to spor...@googlegroups.com
I posted this to rspec-users but got no replies, so thought I'd repost and try here.

=====

Hi

I can't find any reference to this being a known issue or not. I'm having to work on a Rails 2.3 project for a bit, so I'm back with RSpec 1.3. I've got Spork working and I'm running it with this command:

ruby -S spec --drb --colour --format progress -o spec/spec.opts ...

But I only get a monochrome output. Any idea what might be going on?

Thought I'd ask here as it seems more RSpec- than Spork-based.

Cheers
Ashley


--
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran

David Chelimsky

unread,
Apr 14, 2010, 7:45:07 AM4/14/10
to spor...@googlegroups.com
On Apr 14, 2010, at 4:31 AM, Ashley Moran wrote:

> I posted this to rspec-users but got no replies, so thought I'd repost and try here.
>
> =====
>
> Hi
>
> I can't find any reference to this being a known issue or not. I'm having to work on a Rails 2.3 project for a bit, so I'm back with RSpec 1.3. I've got Spork working and I'm running it with this command:
>
> ruby -S spec --drb --colour --format progress -o spec/spec.opts ...

The options flag should be O, not o.

What's in spec.opts? Anything duplicated between the command and spec.opts?


> But I only get a monochrome output. Any idea what might be going on?
>
> Thought I'd ask here as it seems more RSpec- than Spork-based.
>
> Cheers
> Ashley
>
>
> --
> http://www.patchspace.co.uk/
> http://www.linkedin.com/in/ashleymoran
>

> --
> You received this message because you are subscribed to the Google Groups "sporkgem" group.
> To post to this group, send email to spor...@googlegroups.com.
> To unsubscribe from this group, send email to sporkgem+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sporkgem?hl=en.
>

Ashley Moran

unread,
Apr 14, 2010, 10:13:51 AM4/14/10
to spor...@googlegroups.com

On Apr 14, 2010, at 12:45 pm, David Chelimsky wrote:

> The options flag should be O, not o.

Doh. Although, looking at the code I'm using for Autotest, I didn't write the thing that adds in that flag. Can't remember where I got it from now, but works with -O :)


> What's in spec.opts? Anything duplicated between the command and spec.opts?

Now I've got -O in the right place, my spec.opts file contains:

--drb
--colour
--format progress

And the command autospec is running is:

ruby -S spec -O spec/spec.opts <files>

But still no colour, with no errors to indicate why. Hmmm...

Reply all
Reply to author
Forward
0 new messages