[rspec-users] Cucumber ENV setting in env.rb

Luis Lavena luislavena at gmail.com
Thu Jan 22 14:29:02 EST 2009

On Thu, Jan 22, 2009 at 1:38 PM, James Byrne <lists at ruby-forum.com> wrote:
> I develop in a heterogeneous environment.  When I am working with Ruby
> on Rails on my laptop then I am inside the bash shell of cygwin running
> under MS-WinXPpro.
> I also happen to favour a light green on dark green default terminal
> display.  This renders portions of cucumber's output, under its default
> colour scheme, invisible on both Linux and cygwin.  So, I have set up a
> custom ENV setting in support/env.rb.  Thus:
> 'passed=white,bold:passed_param=white,bold,underscore'
> When I run rake features this works exactly as I intended under Linux,
> but seems to have no effect whatsoever under cygwin.  I am working
> around this by manually setting the session environment variable and I
> could make this solution permanent by altering my .bashrc script. I
> nonetheless would like to know why this Ruby setting does not seem to
> work in all cases.  Is there a special syntax for cygwin/windows?  Have
> I missed a step and the fact that Linux turns out as expected simply a
> coincidence?

Cucumber is already initialized when support/env.rb is loaded.

On Windows, cucumber uses win32console to output colors. I cannot
comment on cygwin since I'm not a user of the environment.

You're mixing cygwin ruby or is native ruby?
Luis Lavena
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

More information about the rspec-users mailing list