# Sinatra app_file = File.join(File.dirname(__FILE__), *%w[.. .. lib app webserver.rb]) require app_file # Force the application name because polyglot breaks the auto-detection logic. Sinatra::Application.app_file = app_file # RSpec matchers require 'spec/expectations' # Webrat require 'webrat' Webrat.configure do |config| config.mode = :sinatra end World do session = Webrat::SinatraSession.new session.extend(Webrat::Matchers) session.extend(Webrat::HaveTagMatcher) session end World(Ginst::Test) at_exit do include Ginst::Test remove_temp_dir end