diff --git a/spec/features/manage/manage_posts_spec.rb b/spec/features/manage/manage_posts_spec.rb index 8e6616be..0efacf3a 100644 --- a/spec/features/manage/manage_posts_spec.rb +++ b/spec/features/manage/manage_posts_spec.rb @@ -92,7 +92,7 @@ within("[data-post-id='#{post.id}']") do expect(page).to have_content("EDITED: #{post.title}") - expect(crunch(page.text)).to have_content("EDITED: #{post_summary_text(post)[0, 40]}") + expect(crunch(page.text)).to have_content(post_summary_text(post.reload)[0, 40]) expect(page).to have_content("Updated less than a minute ago") expect(page).not_to have_content("##{category.name}") end