$ gem install rspec
$ rspec --color --format=d register.rb
CashRegister
when empty
items
should be empty
total
should be == 0
after scanning 1 and 2
items
should not be empty
total
should be == 3
Finished in 0.00697 seconds
4 examples, 0 failures
--color
- adds green/yellow/red colors to the output.--format=d
- prints readable text instead of a bunch of.......
.
Belated:
--format=d
translates to--format=documentation
, for those interested.