webrat/spec/integration/sinatra/test/test_helper.rb
2008-12-29 06:41:50 -02:00

18 lines
368 B
Ruby

require "rubygems"
require "test/unit"
require "redgreen"
require "sinatra"
require File.dirname(__FILE__) + "/../app"
require File.dirname(__FILE__) + "/../../../../lib/webrat"
Webrat.configure do |config|
config.mode = :sinatra
end
class Test::Unit::TestCase
include Webrat::Methods
Webrat::Methods.delegate_to_session :response_code, :response_body
end