Sha256: 870257cf5d3be5a1ae68bef97707727a777afa22127860669b9b4b1dbde53413
Contents?: true
Size: 902 Bytes
Versions: 2
Compression:
Stored size: 902 Bytes
Contents
require 'rubygems' require 'bundler' require 'minitest/autorun' require 'parallel' require 'open3' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts 'Run `bundle install` to install missing gems' exit e.status_code end require 'shoulda' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require_relative '../lib/gman' require_relative '../lib/gman/domain_list' require_relative '../lib/gman/importer' def bin_path(cmd = 'gman') File.expand_path "../bin/#{cmd}", File.dirname(__FILE__) end def test_bin(*args) Open3.capture2e('bundle', 'exec', bin_path, *args) end def fixture_path(fixture) File.expand_path "./fixtures/#{fixture}", File.dirname(__FILE__) end def with_env(key, value) old_env = ENV[key] ENV[key] = value yield ENV[key] = old_env end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gman-6.0.1 | test/helper.rb |
gman-6.0.0 | test/helper.rb |