From eb7004f6cbad7d6d3d94def7d0ba1ee9d0ca3703 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 7 Oct 2013 17:50:01 -0700 Subject: [PATCH] Improve method of detecting that tests have been run --- lib/abusetheforce.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/abusetheforce.rb b/lib/abusetheforce.rb index 8e40134..507c1f8 100644 --- a/lib/abusetheforce.rb +++ b/lib/abusetheforce.rb @@ -107,7 +107,7 @@ module AbuseTheForce if result != nil # Check if this was a test execution - if result.run_test_result != nil + if options[:run_tests] != nil # Display a quick Success or Failure puts "\nTests #{result.run_test_result.num_failures == "0" ? "SUCCESS" : "FAILURE"}"