Sha256: c3733443b5d84bbf9bf977297b07f8723a7c3e260eca3be34025e5808e85608f

Contents?: true

Size: 677 Bytes

Versions: 37

Compression:

Stored size: 677 Bytes

Contents

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

require 'fileutils'
require 'travis'
require 'highline'
require 'highline/io_console_compatible'
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

37 entries across 37 versions & 1 rubygems

Version Path
travis-1.11.1 spec/spec_helper.rb
travis-1.11.0 spec/spec_helper.rb
travis-1.10.1.travis.1341.9 spec/spec_helper.rb
travis-1.10.1.travis.1321.9 spec/spec_helper.rb
travis-1.10.1.travis.1312.9 spec/spec_helper.rb
travis-1.10.1.travis.1311.9 spec/spec_helper.rb
travis-1.10.1.travis.1305.9 spec/spec_helper.rb
travis-1.10.0 spec/spec_helper.rb
travis-1.9.2.travis.1304.9 spec/spec_helper.rb
travis-1.9.2.travis.1303.9 spec/spec_helper.rb
travis-1.10.0.pre.rc4 spec/spec_helper.rb
travis-1.10.0.pre.rc3 spec/spec_helper.rb
travis-1.10.0.pre.rc2 spec/spec_helper.rb
travis-1.9.2.travis.1288.9 spec/spec_helper.rb
travis-1.9.2.travis.1285.9 spec/spec_helper.rb
travis-1.9.2.travis.1279.9 spec/spec_helper.rb
travis-1.10.0.pre.rc1 spec/spec_helper.rb
travis-1.9.2.travis.1254.9 spec/spec_helper.rb
travis-1.9.2.travis.1236.9 spec/spec_helper.rb
travis-1.9.2.travis.1224.9 spec/spec_helper.rb