```ruby
if ENV["CI"] && 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
user
```ruby
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
```
assistant