ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Search Repo:
Ryan Dahl (author)
Sat Feb 23 10:28:25 -0800 2008
commit  3d4a4f70abc7eb097d4f5b8c6a4e4cdd52ae08f6
tree    92329005f483d4214efbe843c1d53c4bc43f722e
parent  489e487914c2127720f7d47d240dfaaeec9e402b
ebb / benchmark / test.rb
100644 20 lines (15 sloc) 0.409 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require File.dirname(__FILE__) + '/../ruby_lib/ebb'
require File.dirname(__FILE__) + '/application'
 
 
 
server = Ebb::Server.new(SimpleApp.new, {:Port => 4001})
server.start
 
 
# class EbbTest < Test::Unit::TestCase
#
# def get(path)
# Net::HTTP.get_response(URI.parse("http://0.0.0.0:4001#{path}"))
# end
#
# def test_get
# response = get('/hello')
# eval response.body
# end
# end