Class: Test::Unit::TestCase
- Inherits:
-
Object
- Object
- Test::Unit::TestCase
- Defined in:
- lib/tending/pending.rb
Class Method Summary collapse
-
.pending(desc) ⇒ Object
allows creation of pending tests inside Test::Unit::TestCase.
-
.pending_tests ⇒ Object
return hash of files and associated pending tests.
Class Method Details
.pending(desc) ⇒ Object
allows creation of pending tests inside Test::Unit::TestCase
5 6 7 8 9 10 |
# File 'lib/tending/pending.rb', line 5 def self.pending(desc) @@pending_tests ||= {} caller_file = File.(caller.first.split(':').first) @@pending_tests[caller_file] ||= [] @@pending_tests[caller_file] << desc end |
.pending_tests ⇒ Object
return hash of files and associated pending tests
13 14 15 |
# File 'lib/tending/pending.rb', line 13 def self.pending_tests @@pending_tests ||= {} end |