diff options
author | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-17 23:02:16 +0000 |
---|---|---|
committer | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-17 23:02:16 +0000 |
commit | d6c86e631d030202f23b096a1659a495c0263c5a (patch) | |
tree | 641a37967f2626dc06001793266d4de29531a5d2 /lib/minitest/spec.rb | |
parent | 6b43a55611a8139a288e2550e933f84f80155245 (diff) | |
download | ruby-d6c86e631d030202f23b096a1659a495c0263c5a.tar.gz |
Imported minitest 2.8.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/minitest/spec.rb')
-rw-r--r-- | lib/minitest/spec.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/minitest/spec.rb b/lib/minitest/spec.rb index c6b6777acf..ac28b24c4a 100644 --- a/lib/minitest/spec.rb +++ b/lib/minitest/spec.rb @@ -12,7 +12,7 @@ class Module # :nodoc: def infect_an_assertion meth, new_name, dont_flip = false # :nodoc: # warn "%-22p -> %p %p" % [meth, new_name, dont_flip] self.class_eval <<-EOM - def #{new_name} *args, &block + def #{new_name} *args return MiniTest::Spec.current.#{meth}(*args, &self) if Proc === self return MiniTest::Spec.current.#{meth}(args.first, self) if @@ -138,10 +138,6 @@ class MiniTest::Spec < MiniTest::Unit::TestCase @@describe_stack end - def self.current # :nodoc: - @@current_spec - end - ## # Returns the children of this spec. @@ -149,11 +145,6 @@ class MiniTest::Spec < MiniTest::Unit::TestCase @children ||= [] end - def initialize name # :nodoc: - super - @@current_spec = self - end - def self.nuke_test_methods! # :nodoc: self.public_instance_methods.grep(/^test_/).each do |name| self.send :undef_method, name |