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

21 lines
349 B
Ruby
Raw Normal View History

2009-04-15 02:19:57 +00:00
require "rubygems"
require "test/unit"
require "rack/test"
require "redgreen"
require File.dirname(__FILE__) + "/../../../../lib/webrat"
Webrat.configure do |config|
config.mode = :rack_test
end
class Test::Unit::TestCase
include Rack::Test::Methods
include Webrat::Methods
include Webrat::Matchers
def app
RackApp.new
end
end