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
* add helpers test
[sinatra.git]
/
test
/
helpers_dsl.rb
blob
4f41af730497a863eb4e76a7b42fda19679bcd48
1
require File.dirname(__FILE__) + '/helper'
2
3
context "Helpers" do
4
5
specify "for event context" do
6
7
helpers do
8
def foo
9
'foo'
10
end
11
end
12
13
get '/' do
14
foo
15
end
16
17
get_it '/'
18
19
should.be.ok
20
body.should.equal 'foo'
21
22
end
23
24
end