Sha256: b4e2d15b2f8dfae0ba9d42a1092102ed5decccd0cafe8fd3522def2ccd270222

Contents?: true

Size: 469 Bytes

Versions: 15

Compression:

Stored size: 469 Bytes

Contents

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

$LOAD_PATH.unshift(File.dirname(__FILE__))
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

15 entries across 15 versions & 2 rubygems

Version Path
wbzyl-sinatra-rdiscount-0.1.1 test/test_helper.rb
wbzyl-sinatra-rdiscount-0.1.2 test/test_helper.rb
wbzyl-sinatra-rdiscount-0.1.4 test/test_helper.rb
wbzyl-sinatra-rdiscount-0.1.5 test/test_helper.rb
wbzyl-sinatra-static-assets-0.0.10 test/test_helper.rb
wbzyl-sinatra-static-assets-0.0.2 test/test_helper.rb
wbzyl-sinatra-static-assets-0.0.5 test/test_helper.rb
wbzyl-sinatra-static-assets-0.0.6 test/test_helper.rb
wbzyl-sinatra-static-assets-0.0.7 test/test_helper.rb
wbzyl-sinatra-static-assets-0.0.8 test/test_helper.rb
wbzyl-sinatra-static-assets-0.0.9 test/test_helper.rb
wbzyl-sinatra-static-assets-0.1.1 test/test_helper.rb
wbzyl-sinatra-static-assets-0.1.2 test/test_helper.rb
wbzyl-sinatra-static-assets-0.1.4 test/test_helper.rb
wbzyl-sinatra-static-assets-0.1.5 test/test_helper.rb