Class: Test::Unit::TestCase
- Inherits:
-
Object
- Object
- Test::Unit::TestCase
- Defined in:
- lib/coulda/pending.rb
Constant Summary collapse
- @@pending_cases =
[]
- @@at_exit =
false
Instance Method Summary collapse
-
#coulda_pending(txt) ⇒ Object
Loosely based upon Jeremy McAnally’s pending.
Instance Method Details
#coulda_pending(txt) ⇒ Object
Loosely based upon Jeremy McAnally’s pending
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/coulda/pending.rb', line 9 def coulda_pending(txt) print "P" @@pending_cases << txt @@at_exit ||= begin at_exit do puts "\nPending Cases:" @@pending_cases.each do |msg| puts msg end end end end |