Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 021f9b5

Browse files
committed
test added 2
1 parent 0feb895 commit 021f9b5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

spec/lib/modules/summarization/strategies/topic_summary_spec.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,21 @@
7777
expect(poster_name).to eq("test")
7878
end
7979
end
80+
81+
context "when enable_names enabled and prioritize_username_in_ux enabled" do
82+
fab!(:user) { Fabricate(:user, username: "test") }
83+
84+
it "includes the username" do
85+
SiteSetting.enable_names = true
86+
SiteSetting.prioritize_username_in_ux = true
87+
88+
post_1.update!(user: user)
89+
90+
content = topic_summary.targets_data
91+
poster_name = content.first[:poster]
92+
93+
expect(poster_name).to eq("test")
94+
end
95+
end
8096
end
8197
end

0 commit comments

Comments
 (0)