Created
August 3, 2017 05:51
-
-
Save silasjmatson/437cdf02146eedbc31b1574bee3f8c25 to your computer and use it in GitHub Desktop.
Give your spec result format that millennial touch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module RSpec | |
module Core | |
module Formatters | |
class EmojiFormatter < BaseTextFormatter | |
def example_passed(_notification) | |
output.print '👌 ' | |
end | |
def example_pending(_notification) | |
output.print '😲 ' | |
end | |
def example_failed(_notification) | |
output.print '😭 ' | |
end | |
def start_dump(_notification) | |
output.puts | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment