Add support for on-disk file streaming.

This commit is contained in:
Charles Pence
2013-06-18 21:49:38 -04:00
parent db0b536b5b
commit 5428161e0f
2 changed files with 13 additions and 3 deletions
+6
View File
@@ -578,6 +578,12 @@ context "Frontend with lotr" do
assert_match /Bilbo Baggins/, last_response.body
end
test "streaming files to browser" do
get "/Data.csv"
assert last_response.ok?
assert last_response.headers.include? 'Content-Disposition'
end
# base path requires 'map' in a config.ru to work correctly.
test "create pages within sub-directories using base path" do
Precious::App.set(:wiki_options, { :base_path => 'wiki' })