webrat/spec/integration/rack/test/helper.rb

21 lines
362 B
Ruby
Raw Normal View History

2009-04-15 02:19:57 +00:00
require "test/unit"
require "rack/test"
# require "redgreen"
2009-04-15 02:19:57 +00:00
2009-08-13 00:39:35 +00:00
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../../../../lib"
require "webrat"
require File.dirname(__FILE__) + "/../app"
2009-04-15 02:19:57 +00:00
Webrat.configure do |config|
2009-06-12 19:04:14 +00:00
config.mode = :rack
2009-04-15 02:19:57 +00:00
end
class Test::Unit::TestCase
def app
Rack::Builder.new {
use Rack::Lint
run RackApp.new
}
2009-04-15 02:19:57 +00:00
end
end