@@ -227,28 +227,28 @@ module Alchemy
227227 let ( :content_pages ) { [ content_page_1 , content_page_2 ] }
228228 let ( :layout_pages ) { [ layout_page_1 , layout_page_2 ] }
229229
230- it "should update the published_at field of content pages" do
230+ it "should update the updated_at field of content pages" do
231231 content_pages
232232
233233 travel_to ( Time . current ) do
234234 post flush_admin_pages_path , xhr : true
235- # Reloading because published_at was directly updated in the database.
235+ # Reloading because updated_at was directly updated in the database.
236236 content_pages . map ( &:reload )
237237 content_pages . each do |page |
238- expect ( page . published_at ) . to eq ( Time . current )
238+ expect ( page . updated_at ) . to eq ( Time . current )
239239 end
240240 end
241241 end
242242
243- it "should update the published_at field of layout pages" do
243+ it "should update the updated_at field of layout pages" do
244244 layout_pages
245245
246246 travel_to ( Time . current ) do
247247 post flush_admin_pages_path , xhr : true
248- # Reloading because published_at was directly updated in the database.
248+ # Reloading because updated_at was directly updated in the database.
249249 layout_pages . map ( &:reload )
250250 layout_pages . each do |page |
251- expect ( page . published_at ) . to eq ( Time . current )
251+ expect ( page . updated_at ) . to eq ( Time . current )
252252 end
253253 end
254254 end
0 commit comments