repo.or.cz
/
ebb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
some clean ups and debug messages
[ebb.git]
/
ruby_binding
/
test.rb
blob
b632a890b06c87c462770358ac416e6fc3ce5c37
1
require 'test/unit'
2
require 'ebb'
3
require 'rubygems'
4
require 'ruby-debug'
5
Debugger.start
6
7
class SimpleApp
8
def call(env)
9
[200, {:Content_Type => 'text/plain'}, "Hello"]
10
end
11
end
12
13
class EbbTest < Test::Unit::TestCase
14
def test_init
15
server = Ebb::Server.new(SimpleApp.new)
16
server.start
17
18
puts %x{curl -Ni http://localhost:4001/blah}
19
20
ensure
21
server.stop
22
end
23
end