From 2f5a8f532bf1635e76ae364170b1ae2f68f9fd4d Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Tue, 24 Mar 2020 10:10:22 -0500 Subject: [PATCH] ensure article published dates are far enough apart to ensure they are sorted properly (#6811) --- spec/system/articles/user_visits_an_article_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/system/articles/user_visits_an_article_spec.rb b/spec/system/articles/user_visits_an_article_spec.rb index 0e348e731..35487262d 100644 --- a/spec/system/articles/user_visits_an_article_spec.rb +++ b/spec/system/articles/user_visits_an_article_spec.rb @@ -52,6 +52,7 @@ RSpec.describe "Views an article", type: :system do context "with regular articles" do it "lists the articles in ascending published_at order" do articles = create_list(:article, 2) + articles.first.update(published_at: 1.week.ago) articles.each { |a| a.update_columns(collection_id: collection.id) } visit articles.first.path