test/helpers/test_xml_sitemap.rb in nanoc-4.1.6 vs test/helpers/test_xml_sitemap.rb in nanoc-4.2.0b1
- old
+ new
@@ -3,10 +3,11 @@
def setup
super
@reps = Nanoc::Int::ItemRepRepo.new
- @view_context = Nanoc::ViewContext.new(reps: @reps, items: nil)
+ dependency_tracker = Nanoc::Int::DependencyTracker.new(nil)
+ @view_context = Nanoc::ViewContext.new(reps: @reps, items: nil, dependency_tracker: dependency_tracker, compiler: :__irrelevant__)
@items = nil
@item = nil
@site = nil
@config = nil