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
options
[sinatra.git]
/
test
/
template_test.rb
blob
a8486132124178b6c7e7b8ad12e9f9c1f7730872
1
require File.dirname(__FILE__) + '/helper'
2
3
context "Templates (in general)" do
4
5
specify "are read from files if Symbols" do
6
7
get '/from_file' do
8
@name = 'Alena'
9
render :foo, :views_directory => File.dirname(__FILE__) + "/views"
10
end
11
12
get_it '/from_file'
13
14
body.should.equal 'You rock Alena!'
15
16
end
17
18
end