mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 07:37:55 +08:00
DEV: Clear ColorScheme.hex_cache
to avoid leaking state.
This commit is contained in:
@ -1040,9 +1040,14 @@ describe Topic do
|
||||
|
||||
it "resets the topic archetype" do
|
||||
topic.expects(:add_moderator_post)
|
||||
MessageBus.expects(:publish).with("/site/banner", nil)
|
||||
topic.remove_banner!(user)
|
||||
|
||||
message = MessageBus.track_publish do
|
||||
topic.remove_banner!(user)
|
||||
end.first
|
||||
|
||||
expect(topic.archetype).to eq(Archetype.default)
|
||||
expect(message.channel).to eq("/site/banner")
|
||||
expect(message.data).to eq(nil)
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user