Sha256: 71cd94e2805a7492a3947024a0fc9cee162b9cd2f89a0caa27de190f7617e560

Contents?: true

Size: 668 Bytes

Versions: 223

Compression:

Stored size: 668 Bytes

Contents

require 'support/fake_api'
require 'support/fake_github'
require 'support/helpers'

require 'fileutils'
require 'travis'
require 'highline'
require 'tmpdir'
require 'pry' # pry doesn't like us mocking $stdout

temp_dir = nil

HighLine.use_color = false
HighLine.define_singleton_method(:use_color=) { |_| }

RSpec.configure do |c|
  c.include Helpers

  c.before do
    temp_dir = File.expand_path('travis-spec', Dir.tmpdir)
    FileUtils.rm_rf(temp_dir)
    FileUtils.mkdir_p(temp_dir)
    ENV.delete_if { |k,v| k.start_with? "TRAVIS_" }
    ENV['TRAVIS_CONFIG_PATH'] = File.expand_path('travis', temp_dir)
  end

  c.after do
    FileUtils.rm_rf(temp_dir)
  end
end

Version data entries

223 entries across 223 versions & 1 rubygems

Version Path
travis-1.6.3.travis.392.4 spec/spec_helper.rb
travis-1.6.3.travis.390.4 spec/spec_helper.rb
travis-1.6.3.travis.389.4 spec/spec_helper.rb
travis-1.6.3.travis.388.4 spec/spec_helper.rb
travis-1.6.3.travis.387.4 spec/spec_helper.rb
travis-1.6.3.travis.386.4 spec/spec_helper.rb
travis-1.6.3.travis.385.4 spec/spec_helper.rb
travis-1.6.3.travis.384.4 spec/spec_helper.rb
travis-1.6.3.travis.381.4 spec/spec_helper.rb
travis-1.6.3.travis.379.4 spec/spec_helper.rb
travis-1.6.3.travis.377.4 spec/spec_helper.rb
travis-1.6.3.travis.376.4 spec/spec_helper.rb
travis-1.6.3.travis.374.4 spec/spec_helper.rb
travis-1.6.3.travis.373.4 spec/spec_helper.rb
travis-1.6.2.travis.371.4 spec/spec_helper.rb
travis-1.6.2 spec/spec_helper.rb
travis-1.6.2.travis.370.4 spec/spec_helper.rb
travis-1.6.2.travis.369.4 spec/spec_helper.rb
travis-1.6.2.travis.368.4 spec/spec_helper.rb
travis-1.6.2.travis.367.4 spec/spec_helper.rb