Test::Unit::Assertions

Public Class Methods

included(mod) click to toggle source

(Not documented)

# File lib/test/unit/assertions.rb, line 22
    def self.included mod
      mod.send :include, Test::Unit::CRAP_ASSERTIONS
    end

Public Instance Methods

assert_nothing_raised(_ = :ignored) click to toggle source

(Not documented)

# File lib/test/unit/assertions.rb, line 37
    def assert_nothing_raised _ = :ignored                      # 2009-06-01
      self.class.tu_deprecation_warning :assert_nothing_raised
      self._assertions += 1
      yield
    rescue => e
      raise MiniTest::Assertion, exception_details(e, "Exception raised:")
    end
build_message(user_message, template_message, *args) click to toggle source

(Not documented)

# File lib/test/unit/assertions.rb, line 45
    def build_message(user_message, template_message, *args)    # 2009-06-01
      self.class.tu_deprecation_warning :build_message
      user_message ||= ''
      user_message += ' ' unless user_message.empty?
      msg = template_message.split(/<\?>/).zip(args.map { |o| o.inspect })
      user_message + msg.join
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.