spec/nanoc/base/views/config_view_spec.rb in nanoc-4.8.9 vs spec/nanoc/base/views/config_view_spec.rb in nanoc-4.8.10
- old
+ new
@@ -8,15 +8,15 @@
let(:hash) { { amount: 9000, animal: 'donkey', foo: { bar: :baz } } }
let(:view) { described_class.new(config, view_context) }
let(:view_context) do
- Nanoc::ViewContext.new(
- reps: double(:reps),
- items: double(:items),
- dependency_tracker: dependency_tracker,
+ Nanoc::ViewContextForCompilation.new(
+ reps: Nanoc::Int::ItemRepRepo.new,
+ items: Nanoc::Int::ItemCollection.new(config),
+ dependency_tracker: dependency_tracker,
compilation_context: double(:compilation_context),
- snapshot_repo: double(:snapshot_repo),
+ snapshot_repo: double(:snapshot_repo),
)
end
let(:dependency_tracker) { double(:dependency_tracker) }