Add test for GET on empty object (refs #48)

This commit is contained in:
Basti 2015-03-03 10:11:01 -04:00
parent 74a2c21c85
commit 247559e563

View File

@ -62,6 +62,22 @@ describe "App with Riak backend" do
last_response.status.must_equal 200
last_response.headers["Expires"].must_equal "0"
end
describe "empty file" do
before do
object = data_bucket.new("jimmy:public:empty")
object.content_type = "text/plain"
object.data = ""
object.store
get "/jimmy/public/empty"
end
it "returns an empty body" do
last_response.status.must_equal 200
last_response.body.must_equal ""
end
end
end
describe "GET data with custom content type" do