Sha256: c878656f395649f54a53debd1aa10948d3b94516b3b415d9337eb706ed93136c
Contents?: true
Size: 560 Bytes
Versions: 12
Compression:
Stored size: 560 Bytes
Contents
require '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
12 entries across 12 versions & 1 rubygems