# File tests/common.rb, line 169 def head_url(uri, params={}, opts={}) header 'Accept', accept(opts[:format] || :xml) if DeltacloudTestCommon::recording? VCR.use_cassette("head-"+Digest::SHA1.hexdigest("#{uri}-#{params}")) do head(uri, params || {}, authenticate(opts)) end else head(uri, params || {}, authenticate(opts)) if last_response.status.to_s =~ /5(\d{2})/ puts "============= [ ERROR ] ================" puts last_response.inspect puts "========================================" end end end