Sha256: 3216f3f063926573abe9c8f403fff6ba5ee0bb6e9f8b13ea7c45e9c2cda730a1
Contents?: true
Size: 829 Bytes
Versions: 2
Compression:
Stored size: 829 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 Rack::Builder.new do use Visage::Profiles use Visage::Builder use Visage::JSON run Sinatra::Application end end end World do SinatraWorld.new end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
visage-app-0.2.7 | features/support/env.rb |
visage-app-0.2.6 | features/support/env.rb |