Tired of the same, dull rspec output? liven it up with some emoji!
Below are the sets presently available, and their corresponding id. if you don't set an ID, one will be randomly chosen every run. Emoji icons may not render in certain terminals.
(pass, fail, pending)
put it in your gemfile, under the test group.
gem 'emoji_spec', :git => "https://gist.github.com/6112257.git"
pass the formatter option in when you run the rspec command, like so
$ rspec spec --format EmojiFormatter
to pick a specific set, set the enviroment variable EMOJI_SPEC
like so
$ EMOJI_SPEC=1 rspec spec/
you can also do
$ export EMOJI_SPEC=1
to set it for this terminal session
create or edit .rspec
in your project directory and add --format EmojiFormatter
to it.
A few ways to do this, the easiest is to edit your ~/.bash_profile
and add export EMOJI_SPEC=1