repo.or.cz
/
sinatra.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
agent testing!
[sinatra.git]
/
test
/
static_test.rb
blob
668b8a67d97773b9d09761908a033814a4143a68
1
require File.dirname(__FILE__) + '/helper'
2
3
context "Static files (by default)" do
4
5
specify "are served from root/public" do
6
Sinatra.application.options.public = File.dirname(__FILE__) + '/public'
7
get_it '/foo.xml'
8
should.be.ok
9
body.should.equal "<foo></foo>\n"
10
end
11
12
end
13