Sha256: a27689fcf98a3879ceca12cc2f266e33b8cd1fcd29cbfe0d4ac7ec4fd1d441d8

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

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

require './lib/emojify'

class EmojifyTest < MiniTest::Unit::TestCase
  include Emojify
  emojify_image_dir 'public/images/emojify'

  def test_replacing_keyword
    assert_equal "Keywords <image src='public/images/emojify/smile.png'/>", emojify("Keywords :smile:")
  end

  def test_replacing_multiple_words
    assert_equal "Keywords <image src='public/images/emojify/smile.png'/> when <image src='public/images/emojify/rain.png'/> and <image src='public/images/emojify/laughter.png'/> 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.1 test/lib/emojify_test.rb