test/extra/checking/checks/test_stale.rb in nanoc-4.0.0b4 vs test/extra/checking/checks/test_stale.rb in nanoc-4.0.0rc1

- old
+ new

@@ -2,13 +2,12 @@ def check_class Nanoc::Extra::Checking::Checks::Stale end def calc_issues - site = Nanoc::Int::Site.new('.') - check = check_class.create(site) - check.run - check.issues + site = Nanoc::Int::SiteLoader.new.new_from_cwd + runner = Nanoc::Extra::Checking::Runner.new(site) + issues = runner.run_checks([check_class]) end def test_run_ok with_site do |_site| assert Dir['content/*'].empty?