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

18 lines
355 B
Ruby
Raw Normal View History

2008-12-29 08:41:50 +00:00
require "rubygems"
require "test/unit"
# require "redgreen"
2008-12-29 08:41:50 +00:00
2009-08-13 00:39:35 +00:00
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../../../../lib"
require "webrat"
2008-12-29 08:41:50 +00:00
Webrat.configure do |config|
config.mode = :sinatra
end
class Test::Unit::TestCase
include Webrat::Methods
include Webrat::Matchers
2008-12-29 08:41:50 +00:00
Webrat::Methods.delegate_to_session :response_code, :response_body
end