Sha256: 5871a6e37f8f21af3edf25285a3a97aed2dfa357765d17f1495377837e9745ae
Contents?: true
Size: 548 Bytes
Versions: 18
Compression:
Stored size: 548 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(url: 'http://0.0.0.0/test') end result.should == false end end end
Version data entries
18 entries across 18 versions & 2 rubygems