Sha256: 01440da33650fb47c5cd5f689c6c8ebed5a8de74e4120ed59164b0d0fd80b586

Contents?: true

Size: 444 Bytes

Versions: 50

Compression:

Stored size: 444 Bytes

Contents

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

$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'sinatra/markaby'

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

50 entries across 50 versions & 3 rubygems

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