Bug 323738 - Minitest support

Properly set Expected and Actual for the comparison dialog.

Change-Id: I54f3445c1b74fb361b9d167fe3577c814a1edcdd
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/plugins/org.eclipse.dltk.ruby.testing/testing/minitest/dltk_plugin.rb b/plugins/org.eclipse.dltk.ruby.testing/testing/minitest/dltk_plugin.rb
index cf7dec0..54c3f03 100644
--- a/plugins/org.eclipse.dltk.ruby.testing/testing/minitest/dltk_plugin.rb
+++ b/plugins/org.eclipse.dltk.ruby.testing/testing/minitest/dltk_plugin.rb
@@ -138,6 +138,7 @@
 
     def notifyTestFailure(result)
       DLTKReporter.sendMessage MessageIds::TEST_FAILED + result.class.name+result.name + "," + result.name
+      handleExpectation result.failure.message if result.failure.message.start_with? "Expected:"
       DLTKReporter.sendMessage MessageIds::TRACE_START
       DLTKReporter.sendMessage result.failure.to_s
       DLTKReporter.sendMessage result.failure.location
@@ -151,10 +152,19 @@
       DLTKReporter.sendMessage MessageIds::TRACE_START
       DLTKReporter.sendMessage result.failure.to_s
       DLTKReporter.sendMessage result.failure.location
-      result.failure.backtrace.each { |line| DLTKReporter.sendMessage line }  
+      result.failure.backtrace.each { |line| DLTKReporter.sendMessage line }
       DLTKReporter.sendMessage MessageIds::TRACE_END
     end
 
+    def handleExpectation message
+        DLTKReporter.sendMessage MessageIds::EXPECTED_START
+        DLTKReporter.sendMessage message.lines[0].partition("Expected:")[2].strip!
+        DLTKReporter.sendMessage MessageIds::EXPECTED_END
+        DLTKReporter.sendMessage MessageIds::ACTUAL_START
+        DLTKReporter.sendMessage message.lines[1].partition("Actual:")[2].strip!
+        DLTKReporter.sendMessage MessageIds::ACTUAL_END
+    end
+
     def self.sendMessage(message)
       #debug message
       if @@socket