Sha256: 9bef2a897da6d95fa448fca230afa89a417281666c5a2649c131db12cc19ba7e
Contents?: true
Size: 780 Bytes
Versions: 9
Compression:
Stored size: 780 Bytes
Contents
begin require 'rspec' rescue LoadError require 'rubygems' unless ENV['NO_RUBYGEMS'] gem 'rspec' require 'spec' end RSpec.configure do |config| # Use color in STDOUT config.color_enabled = true # Use color not only in STDOUT but also in pagers and files config.tty = true # Use the specified formatter config.formatter = :documentation # :progress, :html, :textmate end require 'rspec/core/formatters/base_text_formatter' module RSpec module Core module Formatters class DocumentationFormatter < BaseTextFormatter # def green(text); color(text, "\e[42m") end def red(text); color(text, "\e[41m") end # def magenta(text); color(text, "\e[45m") end end end end end $:.unshift(File.dirname(__FILE__) + '/../lib') require 'gepub'
Version data entries
9 entries across 9 versions & 1 rubygems