# Coloured output in rspec 1.1.4

**URL:** <https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950>\
**Category:** RSpec\
**Created:** [May 29, 2008, 10:19am UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950 "2008-05-29T10:19:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 10:19am UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/1 "2008-05-29T10:19:31Z")

</div>

Hello.

I have lost the coloured output in autotest after updating to rspec  
v1.1.4  
I was already using the edge version and was ok then, before the last  
update.

Anyone knows something about this?

Thank you.

---

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/2 "2008-05-29T15:07:39Z")

</div>

On May 29, 2008, at 1:19 AM, Juanma C. wrote:

> Hello.
> 
> I have lost the coloured output in autotest after updating to rspec  
> v1.1.4  
> I was already using the edge version and was ok then, before the last  
> update.
> 
> Anyone knows something about this?

First I’ve heard of it. I’m not having the same issue.

What command are you using to run rspec?

---

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/3 "2008-05-29T15:11:50Z")

</div>

On Thu, May 29, 2008 at 5:19 AM, Juanma C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hello.
> 
> I have lost the coloured output in autotest after updating to rspec  
> v1.1.4  
> I was already using the edge version and was ok then, before the last  
> update.
> 
> Anyone knows something about this?

Can you provide more information about your environment and version of  
stuff installed like zentest gem, OS, etc?

Also if this error happens when running rake spec too?

> Thank you.

## Regards,

## Luis L. AREA 17

Human beings, who are almost unique in having the ability to learn from  
the experience of others, are also remarkable for their apparent  
disinclination to do so.  
Douglas Adams

---

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/4 "2008-05-29T15:15:17Z")

</div>

David C. wrote:

> On May 29, 2008, at 1:19 AM, Juanma C. wrote:
> 
> > Hello.
> > 
> > I have lost the coloured output in autotest after updating to rspec  
> > v1.1.4  
> > I was already using the edge version and was ok then, before the last  
> > update.
> > 
> > Anyone knows something about this?
> 
> First I’ve heard of it. I’m not having the same issue.
> 
> What command are you using to run rspec?

David, I am wrong. I am using the edge version, from github, not 1.1.4  
I see it is numbered 1.1.5 and has this patch applied

== Version 1.1.5 (in git)

- …
- Disable color codes on STDOUT when STDOUT.tty? is false (patch from  
Tim Pope). Closes #413.
- …

Maybe this is not working in Ubuntu as expected.

Besides, colours work well with ‘rake spec’ and don’t work with  
‘autotest’.

---

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/5 "2008-05-29T15:23:07Z")

</div>

On May 29, 2008, at 6:09 AM, Luis L. wrote:

> On Thu, May 29, 2008 at 5:19 AM, Juanma C. \<lists@ruby-  
> [forum.com](http://forum.com)\> wrote:
> 
> > Hello.
> > 
> > I have lost the coloured output in autotest after updating to rspec  
> > v1.1.4

Actually - that is not from 1.1.4 - it’s a patch that was introduced  
after the 1.1.4 release. Did you follow the install directions at  
[Home · dchelimsky/rspec-rails Wiki · GitHub](http://github.com/dchelimsky/rspec-rails/wikis)?

---

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/6 "2008-05-29T15:26:44Z")

</div>

Excuse me Luis.

These are the versions I am using.

OS: Ubuntu 8.04  
Edge Rails revision 888a2927b65889465ce7a1a71e87d37640a2b41b  
ZenTest 3.9.2  
rspec 1.1.5 a021e7bdc0d65ab40ad4d441ab8844bcd9c12f0c  
rspec-rails e52bc93ce598f21da00cd0589cb7cebd2c1c5130

---

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/7 "2008-05-29T15:15:27Z")

</div>

On May 29, 2008, at 6:04 AM, David C. wrote:

> First I’ve heard of it. I’m not having the same issue.
> 
> What command are you using to run rspec?

Oh - you said autotest.

I do see the problem, and its source, but don’t quite know what to do  
about it yet.

It was introduced in [Remove special case output to STDOUT · dchelimsky/rspec@3457a3a · GitHub](http://github.com/dchelimsky/rspec/commit/3457a3a).

I entered a ticket  
([Lighthouse - Beautifully Simple Issue Tracking](http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/422)  
) to get it on the radar.

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/8 "2008-05-29T15:32:08Z")

</div>

David C. wrote:

> On May 29, 2008, at 6:09 AM, Luis L. wrote:
> 
> > On Thu, May 29, 2008 at 5:19 AM, Juanma C. \<lists@ruby-  
> > [forum.com](http://forum.com)\> wrote:
> > 
> > > Hello.
> > > 
> > > I have lost the coloured output in autotest after updating to rspec  
> > > v1.1.4
> 
> Actually - that is not from 1.1.4 - it’s a patch that was introduced  
> after the 1.1.4 release. Did you follow the install directions at  
> [Home · dchelimsky/rspec-rails Wiki · GitHub](http://github.com/dchelimsky/rspec-rails/wikis)?

More or less.  
I have git-cloned from github repositories instead of make  
“script/plugin install”

---

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/9 "2008-05-29T15:32:33Z")

</div>

On May 29, 2008, at 6:14 AM, David C. wrote:

> > > update.  
> > > do about it yet.
> 
> It was introduced in [Update README.rdoc · dchelimsky/rspec@23e01f2 · GitHub](http://github.com/dchelimsky/rspec/commit/)  
> 3457a3a.
> 
> I entered a ticket ([Lighthouse - Beautifully Simple Issue Tracking](http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/422)  
> ) to get it on the radar.

I reverted 3457a3a so if you do a ‘git pull’ you should be OK.

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![jmcervera](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Post date:** [May 29, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/coloured-output-in-rspec-1-1-4/138950/10 "2008-05-29T15:36:44Z")

</div>

On May 29, 2008, at 6:32 AM, Juanma C. wrote:

> > Actually - that is not from 1.1.4 - it’s a patch that was introduced  
> > after the 1.1.4 release. Did you follow the install directions at  
> > [Home · dchelimsky/rspec-rails Wiki · GitHub](http://github.com/dchelimsky/rspec-rails/wikis)?
> 
> More or less.  
> I have git-cloned from github repositories instead of make  
> “script/plugin install”

script/plugin install doesn’t support getting a specific version from  
git yet. To do that you have to use ‘git clone’ and then ‘git checkout  
1.1.4’ (in this case).
