Sha256: ae212269d3875f8b55d14fac08367db0a4ea5afbfb5c675d3bb5bccbe3511c3c

Contents?: true

Size: 583 Bytes

Versions: 8

Compression:

Stored size: 583 Bytes

Contents

# encoding: UTF-8

require File.absolute_path File.dirname(__FILE__) + '/test_helper'

describe Emoji::Index do
  let(:index) { Emoji::Index.new }

  describe "find_by_name" do
    it 'should find cyclone emoji' do
      assert index.find_by_name('cyclone')
    end
  end

  describe "find_by_moji" do
    it 'should find cyclone emoji by moji character' do
      assert index.find_by_moji('🌀')
    end
  end

  describe "unicode_moji_regex" do
    it "should return complex moji regex" do
      regex = index.unicode_moji_regex

      assert "🌀".match(regex)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
emoji-1.0.7 test/index_test.rb
emoji-1.0.6 test/index_test.rb
emoji-1.0.5 test/index_test.rb
emoji-1.0.4 test/index_test.rb
emoji-1.0.2 test/index_test.rb
emoji-1.0.1 test/index_test.rb
emoji-1.0.0 test/index_test.rb
emoji-1.0.0.pre test/index_test.rb