Sha256: 1310c8707327df61d5077f76facadec1b4d35400fe3f27437f95fc7b354a1be7
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class HeadersTest < UnitTest setup do app.set :reload_templates, true @file = File.join(app.root, 'app', 'packages', 'a_package', 'package.css') FileUtils.touch(@file) @httpdate = File.mtime(@file).httpdate end test "individual route" do get '/packages/a_package/package.css' assert_equal @httpdate, last_response.headers['Last-Modified'] end test "package route" do get '/packages/css_package.6797d3f2e04e2638eb9c460de099fcff.css' assert_equal @httpdate, last_response.headers['Last-Modified'] end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.3.5 | test/headers_test.rb |
sinatra-assetpack-0.3.3 | test/headers_test.rb |
sinatra-assetpack-0.3.2 | test/headers_test.rb |
sinatra-assetpack-0.3.1 | test/headers_test.rb |