Sha256: 187f88af27717c9c8dd5cc0edf5f94d35b5e8437d7e031b912d31c24c56b30c0
Contents?: true
Size: 847 Bytes
Versions: 9
Compression:
Stored size: 847 Bytes
Contents
require 'rubygems' require 'rspec' require 'pathname' require 'rake' SPECDIR = Pathname(__FILE__).dirname PROJECT_ROOT = File.expand_path(File.join(Pathname(__FILE__).dirname, "..")) FIXTURES = File.join(SPECDIR, 'fixtures') require File.join(SPECDIR, '..', 'lib', 'packaging.rb') def load_task(name) return false if (@loaded ||= {})[name] load File.join(SPECDIR, '..', 'tasks', name) @loaded[name] = true end def reset_env(keys) keys.each do |key| ENV[key] = nil end end RSpec.configure do |config| if Pkg::Util::OS.windows? && RUBY_VERSION =~ /^1\./ require 'win32console' config.output_stream = $stdout config.error_stream = $stderr config.formatters.each do |f| if not f.instance_variable_get(:@output).kind_of?(::File) f.instance_variable_set(:@output, $stdout) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems