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

Version Path
Syd-sinatra-0.9.0.2 test/helper.rb
bmizerany-sinatra-0.8.10 test/helper.rb
bmizerany-sinatra-0.9.0.2 test/helper.rb
p8-castronaut-0.6.1.1 vendor/sinatra/test/helper.rb
relevance-castronaut-0.6.0 vendor/sinatra/test/helper.rb
relevance-castronaut-0.6.1 vendor/sinatra/test/helper.rb
relevance-castronaut-0.7.4 vendor/sinatra/test/helper.rb
relevance-castronaut-0.7.5 vendor/sinatra/test/helper.rb
rtomayko-sinatra-0.8.10 test/helper.rb
rtomayko-sinatra-0.9.0.2 test/helper.rb
sinatra-sinatra-0.8.10 test/helper.rb
sinatra-sinatra-0.9.0.1 test/helper.rb
sinatra-sinatra-0.9.0.2 test/helper.rb
sinatra-sinatra-0.9.0 test/helper.rb
nbudin-castronaut-0.7.5 vendor/sinatra/test/helper.rb
sinatra-0.9.0.4 test/helper.rb
sinatra-0.9.0.3 test/helper.rb
sinatra-0.9.0.5 test/helper.rb
sinatra-0.9.0.2 test/helper.rb
sinatra-0.9.0.1 test/helper.rb