Request specs for Rack::Deflate
This blog post was originally published a little while ago. Please consider that it may no longer be relevant or even accurate.
I've been tinkering about with Rack::Deflate
after reading Thoughtbot's post on the topic. Works a charm, but I noticed a lot of the example specs for Rack::Deflate
are now out-of-date for RSpec 3.
As such, I've got an updated request spec that will check that the your content is encoded when the browser indicates that it will be supported. Just pop this in spec/requests/compression_spec.rb
: