spec/nanoc/base/services/outdatedness_rules_spec.rb in nanoc-4.7.12 vs spec/nanoc/base/services/outdatedness_rules_spec.rb in nanoc-4.7.13
- old
+ new
@@ -46,12 +46,12 @@
code_snippets: code_snippets,
config: config,
).run
end
- let(:items) { Nanoc::Int::IdentifiableCollection.new(config, [item]) }
- let(:layouts) { Nanoc::Int::IdentifiableCollection.new(config) }
+ let(:items) { Nanoc::Int::ItemCollection.new(config, [item]) }
+ let(:layouts) { Nanoc::Int::LayoutCollection.new(config) }
before do
allow(site).to receive(:code_snippets).and_return(code_snippets)
allow(site).to receive(:config).and_return(config)
end
@@ -337,10 +337,10 @@
end
let(:stored_obj) { raise 'override me' }
let(:new_obj) { raise 'override me' }
- let(:items) { [new_obj] }
+ let(:items) { Nanoc::Int::ItemCollection.new(config, [new_obj]) }
shared_examples 'a document' do
let(:stored_obj) { klass.new('a', {}, '/foo.md') }
let(:new_obj) { stored_obj }