Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rumoji
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
rumoji
Commits
7a57eb71
Commit
7a57eb71
authored
Jan 30, 2013
by
Mark Wunsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add remaining People names, and infer names from symbol
parent
07f1a2ab
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
lib/rumoji/emoji.rb
+0
-0
spec/rumoji/emoji_spec.rb
+9
-0
No files found.
lib/rumoji/emoji.rb
View file @
7a57eb71
This diff is collapsed.
Click to expand it.
spec/rumoji/emoji_spec.rb
View file @
7a57eb71
...
@@ -18,6 +18,15 @@ describe Rumoji::Emoji do
...
@@ -18,6 +18,15 @@ describe Rumoji::Emoji do
it
(
"converts to the emoji string"
)
{
subject
.
to_s
.
must_equal
poo_string
}
it
(
"converts to the emoji string"
)
{
subject
.
to_s
.
must_equal
poo_string
}
it
(
"converts to a hex code"
)
{
subject
.
hex
.
must_equal
"1F4A9"
}
it
(
"converts to a hex code"
)
{
subject
.
hex
.
must_equal
"1F4A9"
}
describe
"inferring the name"
do
let
(
:symbol
)
{
:person_with_pouting_face
}
subject
do
Rumoji
::
Emoji
.
new
(
"
\u
{1F64E}"
,
symbol
)
end
it
(
"infers the name from the symbol"
)
{
subject
.
name
.
must_equal
"PERSON WITH POUTING FACE"
}
end
describe
"with multiple codepoints"
do
describe
"with multiple codepoints"
do
# From the Unicode 6.2.0 standard:
# From the Unicode 6.2.0 standard:
# The regional indicator symbols in the range
# The regional indicator symbols in the range
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment