Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Sinatra

aslakhellesoy edited this page Aug 13, 2010 · 33 revisions

You can use Cucumber with Sinatra and Webrat!

(For the time being you must use aslakhellesoy’s clones of sinatra and webrat – hopefully my small changes will be incorporated into the official Git repositories).

Just make sure you have a features/steps/env.rb file with the following:

require 'spec'
require 'webrat/sinatra/sinatra_session'
require 'sinatra/test/common'
require File.dirname(__FILE__) + '/../../your_sinatra_app'

World do
  Webrat::SinatraSession.new
end

Clone this wiki locally