Extended maintenance of Ruby versions 1.8.7 and 1.9.2 will end on July 31, 2014. Read more

In Files

  • runit/testcase.rb

Parent

Included Modules

RUNIT::TestCase

Public Class Methods

new(test_name, suite_name=self.class.name) click to toggle source
 
               # File runit/testcase.rb, line 28
def initialize(test_name, suite_name=self.class.name)
  super(test_name)
end
            
suite() click to toggle source
 
               # File runit/testcase.rb, line 15
def self.suite
  method_names = instance_methods(true)
  tests = method_names.delete_if { |method_name| method_name !~ /^test/ }
  suite = TestSuite.new(name)
  tests.each {
    |test|
    catch(:invalid_test) {
      suite << new(test, name)
    }
  }
  return suite
end
            

Public Instance Methods

assert_equals(*args) click to toggle source
 
               # File runit/testcase.rb, line 32
def assert_equals(*args)
  assert_equal(*args)
end
            
name() click to toggle source
 
               # File runit/testcase.rb, line 36
def name
  super.sub(/^(.*?)\((.*)\)$/, '\2#\1')
end
            
run(result, &progress_block) click to toggle source
 
               # File runit/testcase.rb, line 40
def run(result, &progress_block)
  progress_block = proc {} unless (block_given?)
  super(result, &progress_block)
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus