Set ETag header for directory listings

This commit is contained in:
Garret Alfert
2016-01-23 14:29:18 -05:00
parent c676c1a6a8
commit bec9f7a6cc
2 changed files with 10 additions and 1 deletions

View File

@@ -176,6 +176,13 @@ describe "App" do
describe "directory listings" do
it "has an ETag in the header" do
get "/phil/food/"
last_response.status.must_equal 200
last_response.headers["ETag"].must_equal "\"bla\""
end
it "contains all items in the directory" do
get "/phil/food/"