mattsears / nyan-cat-formatter

Nyan Cat inspired RSpec formatter!
http://mattsears.com/articles/2011/11/16/nyan-cat-rspec-formatter
MIT License
741 stars 81 forks source link

Colors lacking in the 4 spec counters #64

Open Bastes opened 10 years ago

Bastes commented 10 years ago

Hi NyanCatFormatters ^^

I'm discovering this awesome gem under Ubuntu 14.04 and I'm just a tiny bit bugged by the lack of colors on the 4 spec counters on the right of the kitty's trail. The colors are otherwise visible on the trail and in the ending report, so it's kind of a nitpick, and I don't know quite where to look to try and give you more symptoms right now, but I'm gonna try.

Keep on doing amazing stuff ^^d

Bastes commented 10 years ago

There seems to lie the culprit: https://github.com/mattsears/nyan-cat-formatter/blob/master/lib/nyan_cat_formatter/common.rb#L71

I'll see if I can make a patch and send a pull request as soon as I figure out how to place colors in the string.

Bastes commented 10 years ago

Tried that:

  # lib/nyan_cat_formatter/common.rb:71
  value = "#{success_color(scoreboard[index])}/#{success_color(@example_count)}:"

Didn't work.