test/helpers/test_blogging.rb in nanoc-4.8.9 vs test/helpers/test_blogging.rb in nanoc-4.8.10
- old
+ new
@@ -35,15 +35,15 @@
items = Nanoc::Int::ItemCollection.new(config)
layouts = Nanoc::Int::LayoutCollection.new(config)
dep_store = Nanoc::Int::DependencyStore.new(items, layouts, config)
dependency_tracker = Nanoc::Int::DependencyTracker.new(dep_store)
- @view_context = Nanoc::ViewContext.new(
- reps: :__irrelevant__,
- items: nil,
- dependency_tracker: dependency_tracker,
+ @view_context = Nanoc::ViewContextForCompilation.new(
+ reps: Nanoc::Int::ItemRepRepo.new,
+ items: Nanoc::Int::ItemCollection.new(config),
+ dependency_tracker: dependency_tracker,
compilation_context: :__irrelevant__,
- snapshot_repo: :__irrelevant_snapshot_repo,
+ snapshot_repo: :__irrelevant_snapshot_repo,
)
end
def test_atom_feed
if_have 'builder' do