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