Class: Test::Unit::TestCase

Inherits:
MiniTest::Spec
  • Object
show all
Defined in:
lib/test/unit/testcase.rb

Constant Summary collapse

MINI_SPECUNIT =
true

Instance Method Summary collapse

Instance Method Details

#build_message(head, template = nil, *arguments) ⇒ Object


15
16
17
18
# File 'lib/test/unit/testcase.rb', line 15

def build_message(head, template=nil, *arguments)
  template &&= template.chomp
  template.gsub(/\?/) { mu_pp(arguments.shift) }
end

#mu_pp(obj) ⇒ Object


11
12
13
# File 'lib/test/unit/testcase.rb', line 11

def mu_pp(obj)
  obj.pretty_inspect.chomp
end