Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pushed up passed? and skipped? to Runnable since they are called from…

… Reporter. pair:@phiggins

[git-p4: depot-paths = "//src/minitest/dev/": change = 8489]
  • Loading branch information...
commit b00b2abf00034a41f1a40336184d90bd37e7eb3f 1 parent 412c031
@zenspider zenspider authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 lib/minitest.rb
View
17 lib/minitest.rb
@@ -278,12 +278,29 @@ def initialize name # :nodoc:
end
##
+ # Did this run pass?
+ #
+ # Note: skipped runs are not considered passing, but they don't
+ # cause the process to exit non-zero.
+
+ def passed?
+ raise NotImplementedError, "subclass responsibility"
+ end
+
+ ##
# Returns a single character string to print based on the result
# of the run. Eg ".", "F", or "E".
def result_code
raise NotImplementedError, "subclass responsibility"
end
+
+ ##
+ # Was this run skipped? See #passed? for more information.
+
+ def skipped?
+ raise NotImplementedError, "subclass responsibility"
+ end
end
##
Please sign in to comment.
Something went wrong with that request. Please try again.