7d7c32256d
Since Sinatra 0.9, apps can be ancapsulated in a class ("modular" style) or be on the top level, just like before ("classic" style) * http://wiki.github.com/brynary/webrat/sinatra * http://www.sinatrarb.com/extensions.html
17 lines
332 B
Ruby
17 lines
332 B
Ruby
require "rubygems"
|
|
require "test/unit"
|
|
require "redgreen"
|
|
|
|
require File.dirname(__FILE__) + "/../../../../lib/webrat"
|
|
|
|
Webrat.configure do |config|
|
|
config.mode = :sinatra
|
|
end
|
|
|
|
class Test::Unit::TestCase
|
|
include Webrat::Methods
|
|
include Webrat::Matchers
|
|
|
|
Webrat::Methods.delegate_to_session :response_code, :response_body
|
|
end
|