Sha256: 35f3cf26dbbf7a82dad387c85221c63ae834c56debe7d693a2c8e37660b80053
Contents?: true
Size: 580 Bytes
Versions: 21
Compression:
Stored size: 580 Bytes
Contents
begin require 'test/spec' rescue LoadError require 'rubygems' require 'test/spec' end $:.unshift File.dirname(File.dirname(__FILE__)) + '/lib' require 'sinatra/base' require 'sinatra/test' require 'sinatra/test/spec' module Sinatra::Test # Sets up a Sinatra::Base subclass defined with the block # given. Used in setup or individual spec methods to establish # the application. def mock_app(base=Sinatra::Base, &block) @app = Sinatra.new(base, &block) end end class Sinatra::Base # Allow assertions in request context include Test::Unit::Assertions end
Version data entries
21 entries across 21 versions & 8 rubygems