2
0
Fork 0
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:
Gerhard Schlager 2017-10-17 22:37:13 +02:00
parent c41880ab19
commit 3cd73cdf18
2 changed files with 14 additions and 1 deletions

View file

@ -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