Sha256: 361c5e37470c6094216ae41c5444cb5f6a8527904ff6d205eea61fab353baba6

Contents?: true

Size: 527 Bytes

Versions: 9

Compression:

Stored size: 527 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/rdiscount'
require 'rdiscount'

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

9 entries across 9 versions & 2 rubygems

Version Path
wbzyl-sinatra-rdiscount-0.10.1 test/test_helper.rb
sinatra-rdiscount-1.0.0.6 test/test_helper.rb
sinatra-rdiscount-1.0.0.4 test/test_helper.rb
sinatra-rdiscount-0.9.4.2 test/test_helper.rb
sinatra-rdiscount-1.0.0.2 test/test_helper.rb
sinatra-rdiscount-1.0.0.1 test/test_helper.rb
sinatra-rdiscount-1.0.0.0 test/test_helper.rb
sinatra-rdiscount-0.9.4.0 test/test_helper.rb
sinatra-rdiscount-0.10.2 test/test_helper.rb