Sha256: f0a51eb5d615299569ebb53f0e818660e113bc0e563bd958176000573c8945bd

Contents?: true

Size: 726 Bytes

Versions: 9

Compression:

Stored size: 726 Bytes

Contents

require "coveralls"
require "simplecov"
require "pry"

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
  add_filter 'vendor/cache'
end

require "tmuxinator"
require "factory_girl"

FactoryGirl.find_definitions

RSpec.configure do |config|
  config.order = "random"
end

# Copied from minitest.
def capture_io
  require 'stringio'

  orig_stdout, orig_stderr = $stdout, $stderr
  captured_stdout, captured_stderr = StringIO.new, StringIO.new
  $stdout, $stderr = captured_stdout, captured_stderr

  yield

  return captured_stdout.string, captured_stderr.string
ensure
  $stdout = orig_stdout
  $stderr = orig_stderr
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tmuxinator-0.6.6 spec/spec_helper.rb
tmuxinator-0.6.6.pre.3 spec/spec_helper.rb
tmuxinator-0.6.6.pre.2 spec/spec_helper.rb
tmuxinator-0.6.6.pre spec/spec_helper.rb
tmuxinator-0.6.5 spec/spec_helper.rb
tmuxinator-0.6.4 spec/spec_helper.rb
tmuxinator-0.6.3 spec/spec_helper.rb
tmuxinator-0.6.2 spec/spec_helper.rb
tmuxinator-0.6.1 spec/spec_helper.rb