mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 02:44:08 +08:00
optimize spec
This commit is contained in:
parent
de5418a905
commit
ed422285f0
@ -16,7 +16,7 @@ describe MaxEmojisValidator do
|
||||
SiteSetting.max_emojis_in_title = 3
|
||||
record.title = '🧐 Lots of emojis here 🎃 :joy: :sunglasses:'
|
||||
validate
|
||||
expect(record.errors[:title]).to be_present
|
||||
expect(record.errors[:title][0]).to eq("can't have more than 3 emoji")
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user