mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 07:19:40 +08:00
MessageBus handles readonly redis now, no need to wrap it
This commit is contained in:
@ -573,7 +573,7 @@ describe Topic do
|
||||
describe "make_banner!" do
|
||||
|
||||
it "changes the topic archetype to 'banner'" do
|
||||
messages = DiscourseBus.track_publish do
|
||||
messages = MessageBus.track_publish do
|
||||
topic.make_banner!(user)
|
||||
expect(topic.archetype).to eq(Archetype.banner)
|
||||
end
|
||||
@ -597,7 +597,7 @@ describe Topic do
|
||||
|
||||
it "resets the topic archetype" do
|
||||
topic.expects(:add_moderator_post)
|
||||
DiscourseBus.expects(:publish).with("/site/banner", nil)
|
||||
MessageBus.expects(:publish).with("/site/banner", nil)
|
||||
topic.remove_banner!(user)
|
||||
expect(topic.archetype).to eq(Archetype.default)
|
||||
end
|
||||
|
Reference in New Issue
Block a user