2011-03-05 12:46:40 +00:00
|
|
|
rootdir = File.expand_path('../../lib', __FILE__)
|
2010-10-24 09:07:44 +00:00
|
|
|
$LOAD_PATH.unshift "#{rootdir}/lib"
|
|
|
|
|
|
|
|
require 'test/unit'
|
|
|
|
begin; require 'turn'; rescue LoadError; end
|
|
|
|
begin
|
|
|
|
require 'rdiscount'
|
|
|
|
rescue LoadError
|
|
|
|
if !defined?(Gem)
|
|
|
|
require 'rubygems'
|
|
|
|
retry
|
|
|
|
end
|
|
|
|
end
|
|
|
|
require 'rocco'
|
|
|
|
|
|
|
|
def roccoize( filename, contents, options = {} )
|
|
|
|
Rocco.new( filename, [ filename ], options ) {
|
|
|
|
contents
|
|
|
|
}
|
|
|
|
end
|