Sha256: 78d7efea51934cdb08ec753138bb946727dfe219c86c66627aa2e6cf48ea5806
Contents?: true
Size: 490 Bytes
Versions: 3
Compression:
Stored size: 490 Bytes
Contents
require 'test_helper' describe Rack::PageCaching::Utils do let(:utils) { Rack::PageCaching::Utils } describe '.gzip_level' do it 'accepts a number and returns it' do utils.gzip_level(1).must_equal 1 end it 'accepts a symbol and returns the corresponding zlib constant' do utils.gzip_level(:best_speed).must_equal Zlib::BEST_SPEED end it 'returns false for unrecognized input' do utils.gzip_level('best_speed').must_equal false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-page_caching-0.0.3 | test/rack/page_caching/utils_spec.rb |
rack-page_caching-0.0.2 | test/rack/page_caching/utils_spec.rb |
rack-page_caching-0.0.1 | test/rack/page_caching/utils_spec.rb |