Class: Test::Unit::Failure
- Inherits:
-
Object
- Object
- Test::Unit::Failure
- Defined in:
- lib/monkeyspecdoc.rb
Instance Method Summary collapse
Instance Method Details
#long_display ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/monkeyspecdoc.rb', line 16 def long_display location_display = if(location.size == 1) location[0].sub(/\A(.+:\d+).*/, ' [\\1]') else "\n [#{location.join("\n ")}]" end name=(split=split_shoulda_names(@test_name))?split.join(" "):@test_name "#{name} FAILED: #{location_display}:\n #@message" end |