This commit is contained in:
Blake Mizerany 2007-12-02 15:41:58 -08:00
parent 13d13b218f
commit a203474d47
2 changed files with 14 additions and 0 deletions

1
test/public/foo.xml Normal file
View File

@ -0,0 +1 @@
<foo></foo>

13
test/static_test.rb Normal file
View File

@ -0,0 +1,13 @@
require File.dirname(__FILE__) + '/helper'
context "Static files (by default)" do
specify "are served from root/public" do
Sinatra.application.options.public = File.dirname(__FILE__) + '/public'
get_it '/foo.xml'
should.be.ok
body.should.equal "<foo></foo>\n"
end
end