if ENV["CI"] && RUBY_ENGINE == "ruby"
  require 'coveralls'
  Coveralls.wear!
end

RSpec.configure do |config|
  config.before(:each) do
    Rainbow.enabled = true
  end
end

if ENV["CI"] && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby")
  require 'coveralls'
  Coveralls.wear!
end

RSpec.configure do |config|
  config.before(:each) do
    Rainbow.enabled = true
  end
end

Fix ruby engine detection under 1.8
Fix ruby engine detection under 1.8
