Sha256: c6ce5c70eff38608ab7d17b692402873d9ca9e0288182590d969dbcaa9a394a0
Contents?: true
Size: 1011 Bytes
Versions: 2
Compression:
Stored size: 1011 Bytes
Contents
require 'coveralls' Coveralls.wear! require 'byebug' 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 = 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 def capture(stream) begin stream = stream.to_s eval "$#{stream} = StringIO.new" yield result = eval("$#{stream}").string ensure eval "$#{stream} = #{stream.upcase}" end result end 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
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
nora_mark_htmlbook-0.0.2 | spec/spec_helper.rb |
nora_mark-0.2beta19 | spec/spec_helper.rb |