A platform for community discussion. Free, open, simple.
DEV: track the correct channel in specs
Sam Saffron3c1fa3910f69
diff --git a/plugins/poll/spec/lib/polls_updater_spec.rb b/plugins/poll/spec/lib/polls_updater_spec.rbindex 871fc94a6f4..2a103d13424 100644--- a/plugins/poll/spec/lib/polls_updater_spec.rb+++ b/plugins/poll/spec/lib/polls_updater_spec.rb@@ -54,7 +54,7 @@ describe DiscoursePoll::PollsUpdater dodescribe "update" doit "does nothing when there are no changes" do- message = MessageBus.track_publish do+ message = MessageBus.track_publish("/polls/#{post.topic_id}") doupdate(post, polls)end.first@@ -109,7 +109,7 @@ describe DiscoursePoll::PollsUpdater doexpect(Poll.find_by(post: post)).to_not be- message = MessageBus.track_publish do+ message = MessageBus.track_publish("/polls/#{post.topic_id}") doupdate(post, polls)end.first@@ -135,7 +135,7 @@ describe DiscoursePoll::PollsUpdater dofreeze_time 1.month.from_now- message = MessageBus.track_publish do+ message = MessageBus.track_publish("/polls/#{post.topic_id}") doupdate(post, polls_with_some_attributes)end.first@@ -166,7 +166,7 @@ describe DiscoursePoll::PollsUpdater dodescribe "inside the edit window" doit "and deletes the votes" do- message = MessageBus.track_publish do+ message = MessageBus.track_publish("/polls/#{post.topic_id}") doupdate(post, polls_with_some_attributes)end.first