homebrew-core/Formula/emojify.rb
2016-06-01 07:45:28 +02:00

19 lines
699 B
Ruby

class Emojify < Formula
desc "Emoji on the command-line :scream:"
homepage "https://github.com/mrowa44/emojify"
url "https://github.com/mrowa44/emojify/archive/v1.0.0.tar.gz"
sha256 "fabefc4767428a2634a77e7845e315725b75b50f282d0943c5b65789650c25d1"
head "https://github.com/mrowa44/emojify.git"
bottle :unneeded
def install
bin.install "emojify"
end
test do
input = "Hey, I just :raising_hand: you, and this is :scream: , but here's my :calling: , so :telephone_receiver: me, maybe?"
expected = "Hey, I just 🙋 you, and this is 😱 , but here's my 📲 , so 📞 me, maybe?"
assert_equal(expected, shell_output("#{bin}/emojify \"#{input}\"").strip)
end
end