Skip to content

Commit

Permalink
Slightly adapt internal tests exclude code.
Browse files Browse the repository at this point in the history
* So to not depend on default definee.
  • Loading branch information
eregon committed Apr 20, 2015
1 parent 3b1b368 commit ff7a1d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/mri/lib/minitest/unit.rb
Expand Up @@ -1370,10 +1370,8 @@ def self.inherited klass # :nodoc:
excludes = {}
klass.send :instance_variable_set, :@excludes, excludes

klass.instance_eval do
def exclude(name, reason)
@excludes[name] = reason
end
def klass.exclude(name, reason)
@excludes[name] = reason
end

klass.class_eval exclude_src
Expand Down

0 comments on commit ff7a1d0

Please sign in to comment.