Send ETag of deleted item in header

This commit is contained in:
Garret Alfert
2016-06-02 16:43:50 +02:00
parent 23f0908f38
commit 16e51038b1
2 changed files with 9 additions and 0 deletions

View File

@@ -239,6 +239,14 @@ describe "App" do
redis.smembers("rs:m:phil:/:items").must_be_empty
end
it "responds with the ETag of the deleted item in the haeder" do
RestClient.stub :delete, "" do
delete "/phil/food/aguacate"
end
last_response.headers["ETag"].must_equal "\"bla\""
end
end
end