test/helpers/test_xml_sitemap.rb in nanoc-4.3.5 vs test/helpers/test_xml_sitemap.rb in nanoc-4.3.6

- old
+ new

@@ -28,11 +28,11 @@ # Create item 2 item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('some content 2', { is_hidden: true }, '/item-two/'), @view_context) @items << item # Create item 3 - attrs = { mtime: Time.parse('2004-07-12'), changefreq: 'daily', priority: 0.5 } + attrs = { mtime: Time.parse('2004-07-12 00:00:00 +02:00'), changefreq: 'daily', priority: 0.5 } item = Nanoc::ItemWithRepsView.new(Nanoc::Int::Item.new('some content 3', attrs, '/item-three/'), @view_context) @items << item create_item_rep(item.unwrap, :three_a, '/item-three/a/') create_item_rep(item.unwrap, :three_b, '/item-three/b/') @@ -68,11 +68,11 @@ assert_equal '', urls[1].css('> priority').inner_text assert_equal '0.5', urls[2].css('> priority').inner_text assert_equal '0.5', urls[3].css('> priority').inner_text assert_equal '', urls[0].css('> lastmod').inner_text assert_equal '', urls[1].css('> lastmod').inner_text - assert_equal '2004-07-12', urls[2].css('> lastmod').inner_text - assert_equal '2004-07-12', urls[3].css('> lastmod').inner_text + assert_equal '2004-07-11', urls[2].css('> lastmod').inner_text + assert_equal '2004-07-11', urls[3].css('> lastmod').inner_text end end def test_sitemap_with_items_as_param if_have 'builder', 'nokogiri' do