Improve method of detecting that tests have been run

This commit is contained in:
ViViDboarder 2013-10-07 17:50:01 -07:00
parent 9ab1eb3b98
commit eb7004f6cb

View File

@ -107,7 +107,7 @@ module AbuseTheForce
if result != nil if result != nil
# Check if this was a test execution # Check if this was a test execution
if result.run_test_result != nil if options[:run_tests] != nil
# Display a quick Success or Failure # Display a quick Success or Failure
puts "\nTests #{result.run_test_result.num_failures == "0" ? "SUCCESS" : "FAILURE"}" puts "\nTests #{result.run_test_result.num_failures == "0" ? "SUCCESS" : "FAILURE"}"