test/helper.rb in jekyll-2.0.0.alpha.1 vs test/helper.rb in jekyll-2.0.0.alpha.2

- old
+ new

@@ -26,9 +26,20 @@ STDERR.reopen(test(?e, '/dev/null') ? '/dev/null' : 'NUL:') class Test::Unit::TestCase include RR::Adapters::TestUnit + def build_configs(overrides, base_hash = Jekyll::Configuration::DEFAULTS) + Utils.deep_merge_hashes(base_hash, overrides) + end + + def site_configuration(overrides = {}) + build_configs({ + "source" => source_dir, + "destination" => dest_dir + }, build_configs(overrides)) + end + def dest_dir(*subdirs) test_dir('dest', *subdirs) end def source_dir(*subdirs)