Sha256: e07efb82712bbaec55e754ef3ded67b6da45546bb0d19f6a9eedebd766d5c9cc

Contents?: true

Size: 636 Bytes

Versions: 41

Compression:

Stored size: 636 Bytes

Contents

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

require 'fileutils'
require 'travis'
require 'highline'
require 'tmpdir'
require 'rspec/its'

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

41 entries across 41 versions & 1 rubygems

Version Path
travis-1.8.14.travis.1186.9 spec/spec_helper.rb
travis-1.8.14.travis.1184.9 spec/spec_helper.rb
travis-1.8.14.travis.1183.9 spec/spec_helper.rb
travis-1.8.14.travis.1178.9 spec/spec_helper.rb
travis-1.8.14.travis.1175.9 spec/spec_helper.rb
travis-1.8.14.travis.1172.9 spec/spec_helper.rb
travis-1.8.14.travis.1164.9 spec/spec_helper.rb
travis-1.8.14.travis.1163.9 spec/spec_helper.rb
travis-1.8.14.travis.1162.9 spec/spec_helper.rb
travis-1.8.14.travis.1160.9 spec/spec_helper.rb
travis-1.8.13 spec/spec_helper.rb
travis-1.8.14.travis.1156.9 spec/spec_helper.rb
travis-1.8.14.travis.1155.9 spec/spec_helper.rb
travis-1.8.13.travis.1152.9 spec/spec_helper.rb
travis-1.8.13.travis.1148.9 spec/spec_helper.rb
travis-1.8.12 spec/spec_helper.rb
travis-1.8.13.travis.1141.9 spec/spec_helper.rb
travis-1.8.12.travis.1136.9 spec/spec_helper.rb
travis-1.8.12.travis.1135.9 spec/spec_helper.rb
travis-1.8.12.travis.1125.9 spec/spec_helper.rb