Sha256: 780894771f307f61d4bb5ae1877ba21bd3229bb6f6bdf4ca57b9c3e83d2059c5

Contents?: true

Size: 607 Bytes

Versions: 2

Compression:

Stored size: 607 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Emojimmy do
  describe :token_to_emoji do
    let(:stored_text) { 'Hello {U+1F601}{U+1F601} you {U+1F608} {U+1F438}!' }
    let(:returned_text) { 'Hello 😁😁 you 😈 🐸!' }

    specify do
      expect(Emojimmy.token_to_emoji(stored_text)).to eql returned_text
    end
  end

  describe :emoji_to_token do
    let(:received_text) { 'Hello 😁😁 you 😈 🐸!' }
    let(:stored_text) { 'Hello {U+1F601}{U+1F601} you {U+1F608} {U+1F438}!' }

    specify do
      expect(Emojimmy.emoji_to_token(received_text)).to eql stored_text
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
emojimmy-0.1.4 spec/emojimmy_spec.rb
emojimmy-0.1.3 spec/emojimmy_spec.rb