test/helper.rb in sixones-jekyll-0.4.1 vs test/helper.rb in sixones-jekyll-0.5.0

- old
+ new

@@ -1,14 +1,24 @@ require File.join(File.dirname(__FILE__), *%w[.. lib jekyll]) require 'test/unit' require 'redgreen' +require 'shoulda' +require 'rr' include Jekyll -def dest_dir - File.join(File.dirname(__FILE__), *%w[dest]) -end +class Test::Unit::TestCase + include RR::Adapters::TestUnit -def clear_dest - FileUtils.rm_rf(dest_dir) + 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 end