test/helpers/test_xml_sitemap.rb in nanoc-4.7.12 vs test/helpers/test_xml_sitemap.rb in nanoc-4.7.13

- old
+ new

@@ -7,12 +7,12 @@ def setup super config = Nanoc::Int::Configuration.new.with_defaults - items = Nanoc::Int::IdentifiableCollection.new(config) - layouts = Nanoc::Int::IdentifiableCollection.new(config) + 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) @reps = Nanoc::Int::ItemRepRepo.new @view_context = Nanoc::ViewContext.new( @@ -55,11 +55,11 @@ item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('some content 4', {}, '/item-four/'), @view_context) items << item create_item_rep(item.unwrap, :four_a, nil) # Create items - @items = Nanoc::Int::IdentifiableCollection.new({}, items) + @items = Nanoc::Int::ItemCollection.new({}, items) # Create sitemap item @item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('sitemap content', {}, '/sitemap/'), @view_context) # Create site @@ -102,11 +102,11 @@ item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('some content 1', {}, '/item-one/'), @view_context) items << item create_item_rep(item.unwrap, :one_a, '/item-one/a/') create_item_rep(item.unwrap, :one_b, '/item-one/b/') items << nil - @items = Nanoc::Int::IdentifiableCollection.new({}) + @items = Nanoc::Int::ItemCollection.new({}) # Create sitemap item @item = Nanoc::Int::Item.new('sitemap content', {}, '/sitemap/') # Create site @@ -135,11 +135,11 @@ def test_filter if_have 'builder', 'nokogiri' do # Create items item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('some content 1', {}, '/item-one/'), @view_context) - @items = Nanoc::Int::IdentifiableCollection.new({}, [item]) + @items = Nanoc::Int::ItemCollection.new({}, [item]) create_item_rep(item.unwrap, :one_a, '/item-one/a/') create_item_rep(item.unwrap, :one_b, '/item-one/b/') # Create sitemap item @item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('sitemap content', {}, '/sitemap/'), @view_context) @@ -178,11 +178,11 @@ create_item_rep(item.unwrap, :b_bob, '/walton/bob/') item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('some content 1', {}, '/lucas/'), @view_context) items << item create_item_rep(item.unwrap, :a_trudy, '/lucas/trudy/') create_item_rep(item.unwrap, :b_mallory, '/lucas/mallory/') - @items = Nanoc::Int::IdentifiableCollection.new({}, items) + @items = Nanoc::Int::ItemCollection.new({}, items) # Create sitemap item @item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('sitemap content', {}, '/sitemap/'), @view_context) # Create site @@ -209,10 +209,10 @@ def test_url_escape if_have 'builder', 'nokogiri' do # Create items item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('some content 1', {}, '/george/'), @view_context) - @items = Nanoc::Int::IdentifiableCollection.new({}, [item]) + @items = Nanoc::Int::ItemCollection.new({}, [item]) create_item_rep(item.unwrap, :default, '/cool projects/проверка') # Create sitemap item @item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('sitemap content', {}, '/sitemap/'), @view_context)