Skip to content

Instantly share code, notes, and snippets.

@silasjmatson
Created August 3, 2017 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silasjmatson/437cdf02146eedbc31b1574bee3f8c25 to your computer and use it in GitHub Desktop.
Save silasjmatson/437cdf02146eedbc31b1574bee3f8c25 to your computer and use it in GitHub Desktop.
Give your spec result format that millennial touch
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