mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
DEV: Remove chat related code from core (#23750)
I'm not sure why this is necessary and it doesn't seem to affect anything if I remove it. Either way, we shouldn't have plugin related code polluting core.
This commit is contained in:
parent
e6bc74acc8
commit
1c489bdbcc
|
@ -4,10 +4,7 @@ RSpec.describe TopicTrackingStateItemSerializer do
|
|||
fab!(:user) { Fabricate(:user) }
|
||||
fab!(:post) { create_post }
|
||||
|
||||
before do
|
||||
SiteSetting.navigation_menu = "legacy"
|
||||
SiteSetting.chat_enabled = false if defined?(::Chat)
|
||||
end
|
||||
before { SiteSetting.navigation_menu = "legacy" }
|
||||
|
||||
it "serializes topic tracking state reports" do
|
||||
report = TopicTrackingState.report(user)
|
||||
|
|
|
@ -13,10 +13,7 @@ RSpec.describe WebHookUserSerializer do
|
|||
WebHookUserSerializer.new(user, scope: Guardian.new(admin), root: false)
|
||||
end
|
||||
|
||||
before do
|
||||
SiteSetting.navigation_menu = "legacy"
|
||||
SiteSetting.chat_enabled = false if defined?(::Chat)
|
||||
end
|
||||
before { SiteSetting.navigation_menu = "legacy" }
|
||||
|
||||
it "should include relevant user info" do
|
||||
payload = serializer.as_json
|
||||
|
|
Loading…
Reference in New Issue
Block a user