Sha256: f9412a104171fd81c10630d058c312eba74dd6dd722949802143db5d9b54e529
Contents?: true
Size: 625 Bytes
Versions: 13
Compression:
Stored size: 625 Bytes
Contents
# See http://wiki.github.com/aslakhellesoy/cucumber/sinatra # for more details about Sinatra with Cucumber # Sinatra 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 'webrat' Webrat.configure do |config| config.mode = :rack end class MyWorld include Webrat::Methods include Webrat::Matchers Webrat::Methods.delegate_to_session :response_code, :response_body def app Sinatra::Application end end World{MyWorld.new}
Version data entries
13 entries across 13 versions & 6 rubygems