DEV: Update spec for revisions perf improvement

DEV: Update spec for revisions perf improvement

Followup to c4981bde20a06a4c0a134fa8fec95a025e7d82ac

diff --git a/spec/integration/discourse_prometheus_alert_receiver/receiver_controller_spec.rb b/spec/integration/discourse_prometheus_alert_receiver/receiver_controller_spec.rb
index 20cf213..69239c3 100644
--- a/spec/integration/discourse_prometheus_alert_receiver/receiver_controller_spec.rb
+++ b/spec/integration/discourse_prometheus_alert_receiver/receiver_controller_spec.rb
@@ -1421,7 +1421,7 @@ RSpec.describe DiscoursePrometheusAlertReceiver::ReceiverController do
           it "should update the first post of the topic" do
             expect do
               post "/prometheus/receiver/#{token}", params: payload
-            end.to change { first_post.revisions.count }.by(1) &
+            end.to change { first_post.reload.raw } &
               change { topic.reload.title }
 
             expect(topic.title).to eq(

GitHub sha: c5987eec

1 Like