Sha256: b4bc29285c50560be7063bb2f222332d09d7452934987c8382144eff6e12d624
Contents?: true
Size: 565 Bytes
Versions: 45
Compression:
Stored size: 565 Bytes
Contents
require 'core/spec_helper' describe ZendeskAPI::Middleware::Response::Gzip do context "with content-encoding = 'gzip'" do subject { '{ "TESTDATA": true }' } before(:each) do encoded_data = StringIO.new gz = Zlib::GzipWriter.new(encoded_data) gz.write(subject) gz.close stub_request(:get, %r{blergh}).to_return(:headers => { :content_encoding => "gzip" }, :body => encoded_data.string) end it "should inflate returned body" do client.connection.get("blergh").body['TESTDATA'].should be_true end end end
Version data entries
45 entries across 45 versions & 1 rubygems