Fix failing specs.

This commit is contained in:
Guo Xiang Tan
2017-03-14 14:58:22 +08:00
parent d173473509
commit 6312b8b7e4
2 changed files with 5 additions and 2 deletions

View File

@ -432,6 +432,8 @@ HTML
describe "custom emoji" do
it "replaces the custom emoji" do
CustomEmoji.create!(name: 'trout', upload: Fabricate(:upload))
Emoji.clear_cache
expect(PrettyText.cook("hello :trout:")).to match(/<img src[^>]+trout[^>]+>/)
end
end