Fix up tests

This commit is contained in:
Alfred Xing 2015-01-19 16:23:51 -08:00
parent fe5f0d124c
commit 29aabd84bd
2 changed files with 3 additions and 6 deletions

View File

@ -37,8 +37,7 @@ class Test::Unit::TestCase
def site_configuration(overrides = {})
full_overrides = build_configs(overrides, build_configs({"destination" => dest_dir}))
build_configs({
"source" => source_dir,
"full_rebuild" => true
"source" => source_dir
}, full_overrides)
end

View File

@ -5,15 +5,13 @@ class TestRegenerator < Test::Unit::TestCase
setup do
FileUtils.rm_rf(source_dir(".jekyll-metadata"))
@site = Site.new(Jekyll.configuration({
"source" => source_dir,
"destination" => dest_dir,
@site = fixture_site({
"collections" => {
"methods" => {
"output" => true
}
}
}))
})
@site.read
@page = @site.pages.first