RED/GREEN bar is not working.

16 views
Skip to first unread message

Arup Rakshit

unread,
Sep 2, 2014, 11:35:30 AM9/2/14
to rs...@googlegroups.com
Hi,

I have the below code in my spec/spec_helper.rb file.

RSpec.configure do |c|
c.color_enabled = true
c.tty = true
c.formatter = :documentation
end

But when I am running my tests, I am not getting RED/GREEN default colors.
Here is the image - http://s10.postimg.org/lw7z98fjt/vim1.png

I am using openSUSE 13.1 KDE.

--
================
Regards,
Arup Rakshit
================
Debugging is twice as hard as writing the code in the first place. Therefore,
if you write the code as cleverly as possible, you are, by definition, not
smart enough to debug it.

--Brian Kernighan

Jon Rowe

unread,
Sep 2, 2014, 12:00:40 PM9/2/14
to rs...@googlegroups.com
Check that you don’t have a .rspec or .rspec.local file overwriting the spec_helper option with `—no-color`, and check your terminal displays colours correctly with `echo -e '\e[31mHello World\e[0m’` (you should see red text).

If the later doesn’t display in red then your terminal settings need tweaking, otherwise if it does and you’ve checked you’re not overriding the option then can you open an issue on http://github.com/rspec/rspec-core.

Jon Rowe
---------------------------

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arup Rakshit

unread,
Sep 2, 2014, 12:37:00 PM9/2/14
to rs...@googlegroups.com
On Tuesday, September 02, 2014 05:00:29 PM Jon Rowe wrote:
> Check that you don’t have a .rspec or .rspec.local file overwriting the
> spec_helper option with `—no-color`, and

No.. I didn't create any such as you mentioned above.

>check your terminal displays
> colours correctly with `echo -e '\e[31mHello World\e[0m’` (you should see
> red text).

Red is coming.
Reply all
Reply to author
Forward
0 new messages