Skip to content

Instantly share code, notes, and snippets.

@oren
Created October 15, 2010 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oren/627372 to your computer and use it in GitHub Desktop.
Save oren/627372 to your computer and use it in GitHub Desktop.
# See http://wiki.github.com/aslakhellesoy/cucumber/sinatra
# for more details about Sinatra with Cucumber
require 'sinatra'
app_file = File.join(File.dirname(__FILE__), *%w[.. .. reports.rb])
require app_file
# Force the application name because polyglot breaks the auto-detection logic.
Sinatra::Application.app_file = app_file
require 'spec/expectations'
require 'rack/test'
#require 'capybara/cucumber'
#require 'capybara/session'
set :environment, :test
Capybara.app = Rack::Builder.new {
use Rack::Flash
run Sinatra::Application
}.to_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment