Sha256: 569aaa6d86692ed52800ca5bf11ad8457c75bc31031da60b362edbf519105e3d
Contents?: true
Size: 622 Bytes
Versions: 20
Compression:
Stored size: 622 Bytes
Contents
# encoding: utf-8 require 'fedux_org/stdlib/environment' module TestServer module SpecHelper module Environment include FeduxOrg::Stdlib::Environment alias_method :with_environment, :isolated_environment def mock_stdin(&block) old_stdin = $stdin $stdin = double('stdin') block.call ensure $stdin = old_stdin end end end end RSpec.configure do |c| c.include TestServer::SpecHelper::Environment c.before(:suite) do %w{ http_proxy https_proxy HTTP_PROXY HTTPS_PROXY }.each { |var| ENV.delete(var) } end end
Version data entries
20 entries across 20 versions & 1 rubygems