Sha256: e4b7d9524a564455228154554ec38e43e547e2e8cb58837159677bd97254fa49

Contents?: true

Size: 805 Bytes

Versions: 3

Compression:

Stored size: 805 Bytes

Contents

# encoding: utf-8

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

require 'rubygems'
require 'tty'

module Helpers
  def fixtures_dir
    File.join(File.dirname(__FILE__), 'fixtures')
  end

  def fixtures_path(filename = nil)
    File.join(File.dirname(__FILE__), 'fixtures', filename.to_s)
  end
end

RSpec.configure do |config|
  config.include(Helpers)
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'
  config.raise_errors_for_deprecations!
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tty-0.7.0 spec/spec_helper.rb
tty-0.6.1 spec/spec_helper.rb
tty-0.6.0 spec/spec_helper.rb