optimize spec

This commit is contained in:
Arpit Jalan 2018-02-20 22:03:13 +05:30
parent de5418a905
commit ed422285f0
1 changed files with 1 additions and 1 deletions

View File

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