Sha256: 464d509b915a7fcb45a6479d0788fd3af7f85d3f777c819e71a1fb3862e8491a
Contents?: true
Size: 466 Bytes
Versions: 45
Compression:
Stored size: 466 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" }, :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
45 entries across 45 versions & 1 rubygems