examples/sinatra/features/support/env.rb in cucumber-0.6.4 vs examples/sinatra/features/support/env.rb in cucumber-0.7.0.beta.1

- old
+ new

@@ -1,30 +1,13 @@ # See http://wiki.github.com/aslakhellesoy/cucumber/sinatra # for more details about Sinatra with Cucumber -gem 'rack-test', '>=0.5.0' -gem 'sinatra', '=0.9.4' - app_file = File.join(File.dirname(__FILE__), *%w[.. .. app.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 'webrat' +require 'capybara/cucumber' -Webrat.configure do |config| - config.mode = :rack -end - -class MyWorld - include Rack::Test::Methods - include Webrat::Methods - include Webrat::Matchers - - def app - Sinatra::Application - end -end - -World{MyWorld.new} +Capybara.app = Sinatra::Application