Mini John
Mini John

Reputation: 7941

Change Rubymine Rspec Color

Im using Rspec for Testing, but CAN'T find how to change the grey color in to Red and Green. Im testing so much that -especially when an error occurs- im having a hard time reading the passed and failures.

Any help would be nice :)

enter image description here

Upvotes: 5

Views: 860

Answers (2)

yozzz
yozzz

Reputation: 1277

Inside spec_helper.rb:

RSpec.configure do |config|
  config.color = true
end

Upvotes: 1

TrashyMcTrash
TrashyMcTrash

Reputation: 1292

I got it running by doing the following two things:

  1. In your run/debug configurations, enter -c in the Runner options field
  2. In your spec_helper.rb, add the following code:

    RSpec.configure do |config|
      config.tty = true
    end
    

Additional info: http://rubyforge.org/pipermail/rspec-users/2011-January/019327.html

Upvotes: 5

Related Questions