Sha256: f7b4274ab0fc993661e90badbb6568f883561e80b7cc2ea5fcba2fb5043822e5

Contents?: true

Size: 653 Bytes

Versions: 37

Compression:

Stored size: 653 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
  def setup
    @app = lambda { |env| Sinatra::Application.call(env) }
  end
end

Version data entries

37 entries across 37 versions & 9 rubygems

Version Path
Syd-sinatra-0.9.0.2 compat/helper.rb
Syd-sinatra-0.9.0.4 compat/helper.rb
bmizerany-sinatra-0.8.10 compat/helper.rb
bmizerany-sinatra-0.8.9 compat/helper.rb
bmizerany-sinatra-0.9.0.2 compat/helper.rb
bmizerany-sinatra-0.9.0.4 compat/helper.rb
bmizerany-sinatra-0.9.0.5 compat/helper.rb
bmizerany-sinatra-0.9.1 compat/helper.rb
darkhelmet-sinatra-0.9.0.5 compat/helper.rb
darkhelmet-sinatra-0.9.1.1 compat/helper.rb
darkhelmet-sinatra-0.9.1 compat/helper.rb
p8-castronaut-0.6.1.1 vendor/sinatra/compat/helper.rb
relevance-castronaut-0.6.0 vendor/sinatra/compat/helper.rb
relevance-castronaut-0.6.1 vendor/sinatra/compat/helper.rb
relevance-castronaut-0.7.4 vendor/sinatra/compat/helper.rb
relevance-castronaut-0.7.5 vendor/sinatra/compat/helper.rb
rtomayko-sinatra-0.8.10 compat/helper.rb
rtomayko-sinatra-0.9.0.2 compat/helper.rb
sinatra-sinatra-0.8.10 compat/helper.rb
sinatra-sinatra-0.8.9 compat/helper.rb