Permalink
Browse files

Runnable's @name is now @NAME, but has normal accessor methods

[git-p4: depot-paths = "//src/minitest/dev/": change = 8492]
  • Loading branch information...
1 parent 57a3153 commit 36cfeb3d8f239e62f807c41942dd88f354cb45d1 @zenspider zenspider committed May 3, 2013
Showing with 10 additions and 1 deletion.
  1. +10 −1 lib/minitest.rb
View
@@ -212,7 +212,16 @@ class Runnable
##
# Name of the run.
- attr_accessor :name
+ def name
+ @NAME
+ end
+
+ ##
+ # Set the name of the run.
+
+ def name= o
+ @NAME = o
+ end
def self.inherited klass # :nodoc:
self.runnables << klass

0 comments on commit 36cfeb3

Please sign in to comment.