Sha256: 43256b16c5a46c84fc0c9a0466b17f1983d6fa778f1b055469aade350b54665b

Contents?: true

Size: 809 Bytes

Versions: 1

Compression:

Stored size: 809 Bytes

Contents

require 'minitest/autorun'
require 'minitest/pride'

require './lib/emojify'

class EmojifyDefaultTest < MiniTest::Unit::TestCase
  include Emojify

  def test_replacing_keyword
    assert_equal "Keywords <image src='/assets/emojis/smile.png' height='20' width='20'/>", emojify("Keywords :smile:")
  end

  def test_replacing_with_numbers
    assert_equal "Keywords <image src='/assets/emojis/+1.png' height='20' width='20'/>", emojify("Keywords :+1:")
  end

  def test_replacing_multiple_words
    assert_equal "Keywords <image src='/assets/emojis/smile.png' height='20' width='20'/> when <image src='/assets/emojis/rain.png' height='20' width='20'/> and <image src='/assets/emojis/laughter.png' height='20' width='20'/> today",
      emojify("Keywords :smile: when :rain: and :laughter: today")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emojify-0.0.7 test/lib/emojify_default_test.rb