@@ -125,28 +125,28 @@ module Alchemy
125125 let ( :content_pages ) { [ content_page_1 , content_page_2 ] }
126126 let ( :layout_pages ) { [ layout_page_1 , layout_page_2 ] }
127127
128- it "should update the published_at field of content pages" do
128+ it "should update the updated_at field of content pages" do
129129 content_pages
130130
131131 travel_to ( Time . current ) do
132132 post flush_admin_pages_path , xhr : true
133- # Reloading because published_at was directly updated in the database.
133+ # Reloading because updated_at was directly updated in the database.
134134 content_pages . map ( &:reload )
135135 content_pages . each do |page |
136- expect ( page . published_at ) . to eq ( Time . current )
136+ expect ( page . updated_at ) . to eq ( Time . current )
137137 end
138138 end
139139 end
140140
141- it "should update the published_at field of layout pages" do
141+ it "should update the updated_at field of layout pages" do
142142 layout_pages
143143
144144 travel_to ( Time . current ) do
145145 post flush_admin_pages_path , xhr : true
146- # Reloading because published_at was directly updated in the database.
146+ # Reloading because updated_at was directly updated in the database.
147147 layout_pages . map ( &:reload )
148148 layout_pages . each do |page |
149- expect ( page . published_at ) . to eq ( Time . current )
149+ expect ( page . updated_at ) . to eq ( Time . current )
150150 end
151151 end
152152 end
0 commit comments