Skip to content

Instantly share code, notes, and snippets.

@flazz
Created May 20, 2009 20:12
Show Gist options
  • Save flazz/115059 to your computer and use it in GitHub Desktop.
Save flazz/115059 to your computer and use it in GitHub Desktop.
gem 'rack-test', '~>0.3.0'
require 'rack/test'
gem 'webrat', '~>0.4.2'
require 'webrat/sinatra'
# path to schematron
$:.unshift File.join(File.dirname(__FILE__), '../../../schematron/lib')
$:.unshift File.dirname(__FILE__)
require 'app'
require 'spec/expectations'
Pim::App.set :environment, :development
World do
def app
@app = Rack::Builder.new do
run Pim::App
end
end
include Rack::Test::Methods
include Webrat::Methods
include Webrat::Matchers
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment