Skip to content

Commit

Permalink
Add a failing spec of parsing img alt
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanitoFatas committed Jun 28, 2016
1 parent 6da545c commit 4bc1468
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/twemoji_test.rb
Expand Up @@ -156,6 +156,12 @@ def test_parse_diversity_emojis
end
end

def test_parse_flag_img_alt
expected = %(<img draggable=\"false\" title=\":flag-sg:\" alt=\"🇸🇬\" src=\"https://twemoji.maxcdn.com/2/svg/1f1f8-1f1ec.svg\" class=\"emoji\">)

assert_equal expected, Twemoji.parse(":flag-sg:")
end

def test_emoji_pattern
assert_kind_of Regexp, Twemoji.emoji_pattern
end
Expand Down

0 comments on commit 4bc1468

Please sign in to comment.