class Test::Unit::TestAssert::TestBlock
Public Instance Methods
test_with_message()
click to toggle source
# File test-unit-3.3.4/test/test-assertions.rb, line 1528 def test_with_message if defined?(PowerAssert) system_message = <<-MESSAGE.chomp 1.to_s == "2" | | | false "1" MESSAGE else system_message = "<false> is not true." end check_fail("user message.\n#{system_message}") do assert("user message") do 1.to_s == "2" end end end