Sha256: ac1472e6f5c99f8d75373e008d4661c256c47fc465dba7fda0049900581612d3
Contents?: true
Size: 543 Bytes
Versions: 25
Compression:
Stored size: 543 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) module XcodeInstall def self.silence_stderr begin orig_stderr = $stderr.clone $stderr.reopen File.new('/dev/null', 'w') retval = yield ensure $stderr.reopen orig_stderr end retval end describe Curl do it 'reports failure' do `true` curl = XcodeInstall::Curl.new result = nil XcodeInstall.silence_stderr do result = curl.fetch('http://0.0.0.0/test') end result.should == false end end end
Version data entries
25 entries across 25 versions & 1 rubygems