lib/tryouts/cli/run.rb in tryouts-0.6.1 vs lib/tryouts/cli/run.rb in tryouts-0.6.2
- old
+ new
@@ -56,11 +56,11 @@
if (passed == 0 && failed == 0)
puts DEV if Tryouts.verbose > 4
msg = " You didn't even try to acheive your dreams :[ "
elsif failed == 0
puts PUG if Tryouts.verbose > 4
- msg = " All %s dreams came true ".color(:green)
- msg = msg % [passed+failed]
+ msg = passed > 1 ? "All %s dreams" : "Your only dream"
+ msg = (" #{msg} came true " % [passed+failed]).color(:green)
else
puts BUG if Tryouts.verbose > 4
score = (passed.to_f / (passed.to_f+failed.to_f)) * 100
msg = " %s of %s dreams came true (%d%%) ".color(:red)
msg = msg % [passed, passed+failed, score.to_i]