Sha256: 3ca710df603a5706e43352ba9575f0cea389e9c5ca5deac4c6a4cd4990670b3d
Contents?: true
Size: 988 Bytes
Versions: 1
Compression:
Stored size: 988 Bytes
Contents
if RUBY_VERSION > '1.9' && ENV["COVERAGE"] == "true" require 'simplecov' require 'simplecov-gem-adapter' SimpleCov.start('gem') end require 'rubygems' require 'test/unit' gem 'RedCloth', '>= 4.2.1' require 'jekyll' require 'RedCloth' require 'rdiscount' require 'kramdown' require 'redcarpet' require 'redgreen' if RUBY_VERSION < '1.9' require 'shoulda' require 'rr' include Jekyll # Send STDERR into the void to suppress program output messages STDERR.reopen(test(?e, '/dev/null') ? '/dev/null' : 'NUL:') class Test::Unit::TestCase include RR::Adapters::TestUnit def dest_dir(*subdirs) File.join(File.dirname(__FILE__), 'dest', *subdirs) end def source_dir(*subdirs) File.join(File.dirname(__FILE__), 'source', *subdirs) end def clear_dest FileUtils.rm_rf(dest_dir) end def capture_stdout $old_stdout = $stdout $stdout = StringIO.new yield $stdout.rewind return $stdout.string ensure $stdout = $old_stdout end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-1.0.0.beta1 | test/helper.rb |