Sha256: 142065f439eed00ede1b369eb041b8887d80a936490f08b00e7c152eeaf4110a

Contents?: true

Size: 677 Bytes

Versions: 2

Compression:

Stored size: 677 Bytes

Contents

# encoding: utf-8

require 'rubygems'

if ENV['TRAVIS'] || ENV['COVERAGE']
  require 'simplecov'
  require 'coveralls'

  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
  ]

  SimpleCov.start do
    add_filter 'spec'
  end
end

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'rspec'
require 'tty'

RSpec.configure do |config|
  config.order = :rand
end

class String
  def normalize
    gsub(/^[ \t]*/, '').chomp
  end
end

unless defined?(Gem::Specification)
  Gem::Specification = Struct.new(:name, :version)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tty-0.0.11 spec/spec_helper.rb
tty-0.0.10 spec/spec_helper.rb