2012-10-01から1ヶ月間の記事一覧
require 'open-uri' binary = open(filepath,'rb') read = mock('open') read.stub(:readpartial).and_return{|length| binary.readpartial(length) } if (defined? content_encoding).nil? or content_encoding.nil? read.stub(:content_encoding).and_retu…