Created
October 15, 2010 00:44
-
-
Save oren/627372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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