Sha256: cca0e2d27a92939cefa562e97b082469629a73449fdd8a9377f7af8c3575d846
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 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 ENV.delete_if { |k,v| k.start_with? "TRAVIS_" } FileUtils.rm_rf(temp_dir) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
travis-1.5.2 | spec/spec_helper.rb |