Skip to content

Commit

Permalink
- Alias Spec.name from Spec.to_s so it works when @name is nil (nathany)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 6661]
  • Loading branch information
zenspider committed Sep 22, 2011
1 parent 36d0657 commit f73a601
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/minitest/spec.rb
Expand Up @@ -236,8 +236,9 @@ def self.to_s # :nodoc:

# :stopdoc:
class << self
attr_reader :name, :desc
attr_reader :desc
alias :specify :it
alias :name :to_s
end
# :startdoc:
end
Expand Down

0 comments on commit f73a601

Please sign in to comment.