further optimize spec

thanks @tgxworld for the review.
This commit is contained in:
Arpit Jalan 2018-02-21 11:32:40 +05:30
parent 26450f7587
commit 94fb8094c6
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][0]).to eq("can't have more than 3 emoji")
expect(record.errors[:title][0]).to eq(I18n.t("errors.messages.max_emojis", max_emojis_count: 3))
end
end