Sha256: 1081202d4988a1e50f9b1b0ff5472470b4777a20248f976c0f0806d7d806035d
Contents?: true
Size: 560 Bytes
Versions: 36
Compression:
Stored size: 560 Bytes
Contents
require 'core/spec_helper' describe ZendeskAPI::Middleware::Response::Deflate do context "with content-encoding = 'deflate'" do subject { '{ "TESTDATA": true }' } before(:each) do stub_request(:get, %r{blergh}).to_return( :headers => { :content_encoding => "deflate", :content_type => "application/json" }, :body => Zlib::Deflate.deflate(subject) ) end it "should inflate returned body" do expect(client.connection.get("blergh").body['TESTDATA']).to be(true) end end end
Version data entries
36 entries across 36 versions & 1 rubygems