Sha256: 1e358f1bf11b90e96fe59b241086441636ffcc332355bb354d080190774e300b

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
bmizerany-sinatra-0.8.9 test/helper.rb
sinatra-sinatra-0.8.9 test/helper.rb