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
|
2011-03-05 12:46:51 +00:00
|
|
|
require 'rdiscount'
|
2010-10-24 09:07:44 +00:00
|
|
|
rescue LoadError
|
2011-03-05 12:46:51 +00:00
|
|
|
if !defined?(Gem)
|
|
|
|
require 'rubygems'
|
|
|
|
retry
|
|
|
|
end
|
2010-10-24 09:07:44 +00:00
|
|
|
end
|
|
|
|
require 'rocco'
|
|
|
|
|
|
|
|
def roccoize( filename, contents, options = {} )
|
2011-03-05 12:46:51 +00:00
|
|
|
Rocco.new( filename, [ filename ], options ) {
|
|
|
|
contents
|
|
|
|
}
|
2010-10-24 09:07:44 +00:00
|
|
|
end
|