Sha256: 45da519f0ca0c0fec44006603fd3bda5df294a53d736336b1989b3a9e96a7ce6
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
# encoding: UTF-8 require File.absolute_path File.dirname(__FILE__) + '/test_helper' describe Gemojione::Index do let(:index) { Gemojione::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 'find by ascii' do it 'returns the heart emoji' do assert index.find_by_ascii('<3')['unicode'] == "2764" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemojione-3.0.1 | test/index_test.rb |
gemojione-3.0.0 | test/index_test.rb |