spec/nanoc/base/views/item_view_spec.rb in nanoc-4.7.12 vs spec/nanoc/base/views/item_view_spec.rb in nanoc-4.7.13
- old
+ new
@@ -16,19 +16,18 @@
end
let(:reps) { [] }
let(:items) { [] }
let(:dependency_tracker) { Nanoc::Int::DependencyTracker.new(dependency_store) }
- let(:dependency_store) { Nanoc::Int::DependencyStore.new(empty_identifiable_collection, empty_identifiable_collection, config) }
+ let(:dependency_store) { Nanoc::Int::DependencyStore.new(empty_items, empty_layouts, config) }
let(:compilation_context) { double(:compilation_context) }
let(:snapshot_repo) { Nanoc::Int::SnapshotRepo.new }
let(:base_item) { Nanoc::Int::Item.new('base', {}, '/base.md') }
- let(:empty_identifiable_collection) do
- Nanoc::Int::IdentifiableCollection.new(config)
- end
+ let(:empty_items) { Nanoc::Int::ItemCollection.new(config) }
+ let(:empty_layouts) { Nanoc::Int::LayoutCollection.new(config) }
let(:config) { Nanoc::Int::Configuration.new.with_defaults }
before do
dependency_tracker.enter(base_item)
@@ -40,11 +39,11 @@
end
let(:view) { described_class.new(item, view_context) }
let(:items) do
- Nanoc::Int::IdentifiableCollection.new(
+ Nanoc::Int::ItemCollection.new(
{},
[
item,
parent_item,
].compact,
@@ -139,10 +138,10 @@
end
let(:view) { described_class.new(item, view_context) }
let(:items) do
- Nanoc::Int::IdentifiableCollection.new(
+ Nanoc::Int::ItemCollection.new(
{},
[
item,
*children,
],