webrat/spec/integration/sinatra/test/test_helper.rb

18 lines
368 B
Ruby
Raw Permalink Normal View History

2008-12-29 08:41:50 +00:00
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