Skip to content

Commit a6adf34

Browse files
committed
Update spec
1 parent a6f4a28 commit a6adf34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/requests/sitemaps_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
describe "GET /sitemap-pages.xml" do
1414
it "renders sitemap" do
1515
pages = Page.upsert_collection_from_sitepress!(limit: 3)
16+
pages.each.with_index do |page, i|
17+
page.update(published_at: (i + 1).days.ago)
18+
end
19+
1620
get sitemap_pages_path(format: :xml)
1721

1822
expect(response).to have_http_status(200)

0 commit comments

Comments
 (0)