mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
FIX: fancy topic title must fit into column
This commit is contained in:
parent
c41880ab19
commit
3cd73cdf18
2 changed files with 14 additions and 1 deletions
|
@ -329,6 +329,14 @@ describe Topic do
|
|||
expect(topic.fancy_title).to eq("this is another edge case")
|
||||
end
|
||||
|
||||
it "works with long title that results in lots of entities" do
|
||||
long_title = "NEW STOCK PICK: PRCT - LAST PICK UP 233%, NNCO.................................................................................................................................................................. ofoum"
|
||||
topic.title = long_title
|
||||
|
||||
expect { topic.save! }.to_not raise_error
|
||||
expect(topic.fancy_title).to eq(long_title)
|
||||
end
|
||||
|
||||
context 'readonly mode' do
|
||||
before do
|
||||
Discourse.enable_readonly_mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue