Sha256: 33c94ad876f2f0da088956398e66142ed550303854e6e385e496028335f3c563

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 Bytes

Contents

#coding: utf-8
require 'test_helper'

class EncodeEmojiTest < ActiveSupport::TestCase
  test "Module" do
    assert_kind_of Module, MonkeyEmoji
  end

  test "Post.encode_emoji" do
    post = ::Post.new
    emoji_text = "📱 Phone"
    post.title = emoji_text

    assert "{{1f4f1}} Phone", post.title
    assert emoji_text, post.title.decode_emoji
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monkey_emoji-1.0.2 test/encode_emoji_test.rb
monkey_emoji-1.0.1 test/encode_emoji_test.rb