Sha256: 0b0e23c8bca75eca46209a7ffb2b847e854b13850fbe0e7b0c7f08b96d7d5650

Contents?: true

Size: 504 Bytes

Versions: 52

Compression:

Stored size: 504 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'rack/test'

path = File.expand_path("../lib" + File.dirname(__FILE__))
$:.unshift(path) unless $:.include?(path)

require 'sinatra/maruku'

class Test::Unit::TestCase
  include Rack::Test::Methods
  
  attr_reader :app

  # 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

52 entries across 52 versions & 4 rubygems

Version Path
tdreyno-middleman-0.2.4 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.2.5 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.2.6 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.2.7 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.2.8 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.2.9 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.3.0 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.3.1 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.3.10 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.3.2 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.3.3 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.3.4 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.3.7 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.3.8 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.4.1 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.5.0 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.5.2 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.5.3 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.5.4 vendor/sinatra-maruku/test/test_helper.rb
tdreyno-middleman-0.5.5 vendor/sinatra-maruku/test/test_helper.rb