Make your rspec output look more interesting!
(yes we had too much spare time at our hands… 😀 )
# spec/spec_helper.rb
# encoding: UTF-8
if defined? RSpec::Core::Formatters::ProgressFormatter
RSpec::Core::Formatters::ProgressFormatter.class_eval do
DOTS = ['☘','⚘']
def example_passed(example)
output.print green(DOTS[rand(DOTS.size)])
end
end
end
Just in case you want to get more crazy, there is also the nyan cat formatter…
http://www.mattsears.com/articles/2011/11/16/nyan-cat-rspec-formatter