Sha256: ed80dbc3dd28c2c70bf576fac8e47181cb9ecdcc7c8eec7b5dd06d3413a6e4da

Contents?: true

Size: 732 Bytes

Versions: 16

Compression:

Stored size: 732 Bytes

Contents

require 'rubygems'
require 'mocha'

# disable warnings in compat specs.
$VERBOSE = nil

$:.unshift File.dirname(File.dirname(__FILE__)) + "/lib"

ENV['RACK_ENV'] ||= 'test'

require 'sinatra'
require 'sinatra/test'
require 'sinatra/test/unit'
require 'sinatra/test/spec'

module Sinatra::Test
  # we need to remove the new test helper methods since they conflict with
  # the top-level methods of the same name.
  %w(get head post put delete).each do |verb|
    remove_method verb
  end
  include Sinatra::Delegator
end

class Test::Unit::TestCase
  include Sinatra::Test

  PASSTHROUGH_EXCEPTIONS = [] unless const_defined?(:PASSTHROUGH_EXCEPTIONS)

  def setup
    @app = lambda { |env| Sinatra::Application.call(env) }
  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
sinatra-sinatra-0.9.2 compat/helper.rb
akamai_bookmarklet-0.1.2 vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/sinatra-0.9.4/compat/helper.rb
akamai_bookmarklet-0.1.1 vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/helper.rb
akamai_bookmarklet-0.1.0 vendor/gems/ruby/1.8/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.10.17 vendor/gems/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.10.16 vendor/gems/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.10.15 vendor/gems/gems/sinatra-0.9.4/compat/helper.rb
middleman-0.10.14 vendor/gems/gems/sinatra-0.9.4/compat/helper.rb
sinatra-0.9.4 compat/helper.rb
sinatra-0.9.2 compat/helper.rb