Sha256: bd60ab2c8041e19751ed9e9bd7422c8554963bfcb1297f75b44197f8cd0d22fc
Contents?: true
Size: 706 Bytes
Versions: 6
Compression:
Stored size: 706 Bytes
Contents
#!/usr/bin/env ruby require 'pathname' @root = Pathname.new(File.dirname(__FILE__)).parent.parent.expand_path app_file = @root.join('lib/visage-app') require 'rubygems' require 'spec/expectations' require 'rack/test' require 'webrat' require app_file # Force the application name because polyglot breaks the auto-detection logic. Sinatra::Application.app_file = app_file Webrat.configure do |config| config.mode = :rack end class SinatraWorld include Rack::Test::Methods include Webrat::Methods include Webrat::Matchers Webrat::Methods.delegate_to_session :response_code, :response_body, :response_headers, :response def app Visage::JSON end end World do SinatraWorld.new end
Version data entries
6 entries across 6 versions & 1 rubygems