Sha256: 74e827484dba453a972d9d46caf59132e910a0dc0d8a6a12f5db4e2f1e2c35b7
Contents?: true
Size: 555 Bytes
Versions: 11
Compression:
Stored size: 555 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 client.connection.get("blergh").body['TESTDATA'].should be_true end end end
Version data entries
11 entries across 11 versions & 1 rubygems