Add support for emojione

This commit is contained in:
Sven Schwyn
2016-04-15 10:45:51 +02:00
parent 5a5e56a47b
commit fa1bcf9608
8 changed files with 52 additions and 3 deletions
+12
View File
@@ -707,6 +707,18 @@ context "Frontend with lotr" do
assert_match /not so big smelly creatures/, last_response.body
end
test "existing emoji" do
get "/emoji/heart"
assert_equal 200, last_response.status
assert_equal 'image/png', last_response.headers['Content-Type']
assert_equal [137, 80, 78, 71, 13, 10, 26, 10], last_response.body.each_byte.to_a[0..7]
end
test "missing emoji" do
get "/emoji/oggy_was_here"
assert_equal 404, last_response.status
end
def app
Precious::App
end